Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.spec
Class KTSParameterSpec

java.lang.Object
  |
  +--org.bouncycastle.jcajce.spec.KTSParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec
Direct Known Subclasses:
KEMParameterSpec

public class KTSParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec

Parameter spec for doing KTS based wrapping via the Cipher API.


Inner Class Summary
static class KTSParameterSpec.Builder
          Builder class for creating a KTSParameterSpec.
 
Constructor Summary
protected KTSParameterSpec(java.lang.String wrappingKeyAlgorithm, int keySizeInBits, java.security.spec.AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo)
           
 
Method Summary
 AlgorithmIdentifier getKdfAlgorithm()
          Return the AlgorithmIdentifier for the KDF to do key derivation after extracting the secret.
 java.lang.String getKeyAlgorithmName()
          Return the name of the algorithm for the wrapping key this key spec should use.
 int getKeySize()
          Return the size of the key (in bits) for the wrapping key this key spec should use.
 byte[] getOtherInfo()
          Return the otherInfo data for initialising the KDF.
 java.security.spec.AlgorithmParameterSpec getParameterSpec()
          Return the algorithm parameter spec to be applied with the private key when the encapsulation is decrypted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KTSParameterSpec

protected KTSParameterSpec(java.lang.String wrappingKeyAlgorithm,
                           int keySizeInBits,
                           java.security.spec.AlgorithmParameterSpec parameterSpec,
                           AlgorithmIdentifier kdfAlgorithm,
                           byte[] otherInfo)
Method Detail

getKeyAlgorithmName

public java.lang.String getKeyAlgorithmName()
Return the name of the algorithm for the wrapping key this key spec should use.
Returns:
the key algorithm.

getKeySize

public int getKeySize()
Return the size of the key (in bits) for the wrapping key this key spec should use.
Returns:
length in bits of the key to be calculated.

getParameterSpec

public java.security.spec.AlgorithmParameterSpec getParameterSpec()
Return the algorithm parameter spec to be applied with the private key when the encapsulation is decrypted.
Returns:
the algorithm parameter spec to be used with the private key.

getKdfAlgorithm

public AlgorithmIdentifier getKdfAlgorithm()
Return the AlgorithmIdentifier for the KDF to do key derivation after extracting the secret.
Returns:
the AlgorithmIdentifier for the SecretKeyFactory's KDF.

getOtherInfo

public byte[] getOtherInfo()
Return the otherInfo data for initialising the KDF.
Returns:
the otherInfo data.

Bouncy Castle Cryptography Library 1.77.0