Class GoogleKmsSecretKey

    • Method Detail

      • encrypt

        public byte[] encrypt​(byte[] plaintext)
        Encrypts the given plaintext with this key.
        Parameters:
        plaintext - the plaintext to encrypt.
        Returns:
        the encrypted data.
        Throws:
        com.google.api.gax.rpc.ApiException - if an error occurs.