Class KTSExtractKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec

    public class KTSExtractKeySpec
    extends KTSKeySpec
    KeySpec for use with secret key extraction with a SecretKeyFactory supporting KTS.
    • Method Detail

      • getEncapsulation

        public byte[] getEncapsulation()
        Return the encapsulation of the secret associated with this key spec.
        Returns:
        the secret encapsulation.
      • getPrivateKey

        public java.security.PrivateKey getPrivateKey()
        Return the decryption private key to be used by the SecretKeyFactory used with this key spec.
        Returns:
        the private key to be used to decrypt the encapsulation.