|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.jcajce.spec.KTSParameterSpec.Builder
Builder class for creating a KTSParameterSpec.
Constructor Summary | |
KTSParameterSpec.Builder(java.lang.String algorithmName,
int keySizeInBits)
Basic builder. |
|
KTSParameterSpec.Builder(java.lang.String algorithmName,
int keySizeInBits,
byte[] otherInfo)
Basic builder. |
Method Summary | |
KTSParameterSpec |
build()
Build the new parameter spec. |
KTSParameterSpec.Builder |
withKdfAlgorithm(AlgorithmIdentifier kdfAlgorithm)
Set the KDF algorithm and digest algorithm for wrap key generation. |
KTSParameterSpec.Builder |
withNoKdf()
Use the shared secret directly for key wrap generation. |
KTSParameterSpec.Builder |
withParameterSpec(java.security.spec.AlgorithmParameterSpec parameterSpec)
Set the algorithm parameter spec to be used with the wrapper. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KTSParameterSpec.Builder(java.lang.String algorithmName, int keySizeInBits)
algorithmName
- the algorithm name for the secret key we use for wrapping.keySizeInBits
- the size of the wrapping key we want to produce in bits.public KTSParameterSpec.Builder(java.lang.String algorithmName, int keySizeInBits, byte[] otherInfo)
algorithmName
- the algorithm name for the secret key we use for wrapping.keySizeInBits
- the size of the wrapping key we want to produce in bits.otherInfo
- the otherInfo/IV encoding to be applied to the KDF.Method Detail |
public KTSParameterSpec.Builder withParameterSpec(java.security.spec.AlgorithmParameterSpec parameterSpec)
parameterSpec
- the algorithm parameter spec to be used in wrapping/unwrapping.
public KTSParameterSpec.Builder withNoKdf()
public KTSParameterSpec.Builder withKdfAlgorithm(AlgorithmIdentifier kdfAlgorithm)
kdfAlgorithm
- the KDF algorithm to apply.
public KTSParameterSpec build()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |