Package org.bouncycastle.jcajce.spec
Class KTSExtractKeySpec
java.lang.Object
org.bouncycastle.jcajce.spec.KTSKeySpec
org.bouncycastle.jcajce.spec.KTSExtractKeySpec
- All Implemented Interfaces:
KeySpec
KeySpec for use with secret key extraction with a SecretKeyFactory supporting KTS.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder class for creating a KTSExtractKeySpec. -
Field Summary
Fields inherited from class org.bouncycastle.jcajce.spec.KTSKeySpec
KDF2, KDF3
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return the encapsulation of the secret associated with this key spec.Return the decryption private key to be used by the SecretKeyFactory used with this key spec.Methods inherited from class org.bouncycastle.jcajce.spec.KTSKeySpec
getKdfAlgorithmId, getKdfSalt, getKeyAlgorithmName, getKeySize, getMacAlgorithmName, getMacKeySize, getOtherInfo, getParameterSpec
-
Method Details
-
getEncapsulation
public byte[] getEncapsulation()Return the encapsulation of the secret associated with this key spec.- Returns:
- the secret encapsulation.
-
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.
-