Package org.bouncycastle.jcajce.spec
Class KTSGenerateKeySpec
java.lang.Object
org.bouncycastle.jcajce.spec.KTSKeySpec
org.bouncycastle.jcajce.spec.KTSGenerateKeySpec
- All Implemented Interfaces:
KeySpec
KeySpec for use with secret key generation with a SecretKeyFactory supporting KTS.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder class for creating a KTSGenerateKeySpec. -
Field Summary
Fields inherited from class org.bouncycastle.jcajce.spec.KTSKeySpec
KDF2, KDF3
-
Method Summary
Modifier and TypeMethodDescriptionReturn the public key to be used to encrypt the secret and make the encapsulation.Return the SecureRandom which will be used to generate the secret.Methods inherited from class org.bouncycastle.jcajce.spec.KTSKeySpec
getKdfAlgorithmId, getKdfSalt, getKeyAlgorithmName, getKeySize, getMacAlgorithmName, getMacKeySize, getOtherInfo, getParameterSpec
-
Method Details
-
getPublicKey
Return the public key to be used to encrypt the secret and make the encapsulation.- Returns:
- the public key to be used for secret encryption.
-
getSecureRandom
Return the SecureRandom which will be used to generate the secret.- Returns:
- the source of randomness for the secret.
-