Class DirectCryptoProvider

    • Constructor Detail

      • DirectCryptoProvider

        protected DirectCryptoProvider​(SecretKey cek)
                                throws KeyLengthException
        Creates a new direct encryption / decryption provider.
        Parameters:
        cek - The Content Encryption Key (CEK). Must be 128 bits (16 bytes), 192 bits (24 bytes), 256 bits (32 bytes), 384 bits (48 bytes) or 512 bits (64 bytes) long. Must not be null.
        Throws:
        KeyLengthException - If the CEK length is not compatible.
    • Method Detail

      • getKey

        public SecretKey getKey()
        Gets the Content Encryption Key (CEK).
        Returns:
        The key.