Class GoogleKmsKey

    • Method Detail

      • getFormat

        public String getFormat()
        The format is set to null to match the result for a non-extractable PKCS#11 key.
        Specified by:
        getFormat in interface Key
        Returns:
        null.
      • decrypt

        public byte[] decrypt​(byte[] ciphertext)
        Decrypts the given ciphertext using this key.
        Parameters:
        ciphertext - the ciphertext to decrypt.
        Returns:
        the decrypted plaintext.
        Throws:
        UnsupportedOperationException - if this key is not a decryption key.