Package org.bouncycastle.jcajce.spec
Class KTSExtractKeySpec
- java.lang.Object
-
- org.bouncycastle.jcajce.spec.KTSKeySpec
-
- org.bouncycastle.jcajce.spec.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KTSExtractKeySpec.Builder
Builder class for creating a KTSExtractKeySpec.
-
Field Summary
-
Fields inherited from class org.bouncycastle.jcajce.spec.KTSKeySpec
KDF2, KDF3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncapsulation()
Return the encapsulation of the secret associated with this key spec.java.security.PrivateKey
getPrivateKey()
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, getKeyAlgorithmName, getKeySize, getMacAlgorithmName, getMacKeySize, getOtherInfo, getParameterSpec
-
-
-
-
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.
-
-