Package org.bouncycastle.jcajce.spec
Class KTSGenerateKeySpec
- java.lang.Object
-
- org.bouncycastle.jcajce.spec.KTSKeySpec
-
- org.bouncycastle.jcajce.spec.KTSGenerateKeySpec
-
- All Implemented Interfaces:
java.security.spec.KeySpec
public class KTSGenerateKeySpec extends KTSKeySpec
KeySpec for use with secret key generation with a SecretKeyFactory supporting KTS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKTSGenerateKeySpec.BuilderBuilder class for creating a KTSGenerateKeySpec.
-
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 java.security.PublicKeygetPublicKey()Return the public key to be used to encrypt the secret and make the encapsulation.java.security.SecureRandomgetSecureRandom()Return the SecureRandom which will be used to generate the secret.-
Methods inherited from class org.bouncycastle.jcajce.spec.KTSKeySpec
getKdfAlgorithmId, getKeyAlgorithmName, getKeySize, getMacAlgorithmName, getMacKeySize, getOtherInfo, getParameterSpec
-
-
-
-
Method Detail
-
getPublicKey
public java.security.PublicKey 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
public java.security.SecureRandom getSecureRandom()
Return the SecureRandom which will be used to generate the secret.- Returns:
- the source of randomness for the secret.
-
-