de.flexiprovider.core.pbe
Class PBES2ParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.core.pbe.PBES2ParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class PBES2ParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This is the parameter specification for the passphrase based encryption scheme 2.

Author:
Thomas Wahrenbruch

Constructor Summary
protected PBES2ParameterSpec(AlgorithmIdentifier keyDerivationFunction, AlgorithmIdentifier encryptionScheme)
          Construct a new PBE2ParameterSpec object.
  PBES2ParameterSpec(PBKDF2ParameterSpec kdfParamSpec, byte[] iv)
          Construct a new PBE2ParameterSpec object with cipher DESede/CBC (OID 1.2.840.113549.3.7) and the default key derivation function PBKDF2 (OID 1.2.840.113549.1.5.12).
 
Method Summary
 AlgorithmIdentifier getEncryptionScheme()
           
 AlgorithmIdentifier getKeyDerivationFunction()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBES2ParameterSpec

public PBES2ParameterSpec(PBKDF2ParameterSpec kdfParamSpec,
                          byte[] iv)
Construct a new PBE2ParameterSpec object with cipher DESede/CBC (OID 1.2.840.113549.3.7) and the default key derivation function PBKDF2 (OID 1.2.840.113549.1.5.12).
Parameters:
kdfParamSpec - the KDF parameters (salt, iteration count, and key size)
iv - the initialization vector for the underlying cipher

PBES2ParameterSpec

protected PBES2ParameterSpec(AlgorithmIdentifier keyDerivationFunction,
                             AlgorithmIdentifier encryptionScheme)
Construct a new PBE2ParameterSpec object.
Parameters:
keyDerivationFunction - the key derivation function
encryptionScheme - the encryption scheme
Method Detail

getEncryptionScheme

public AlgorithmIdentifier getEncryptionScheme()
Returns:
the AlgorithmIdentifier of the encryption scheme

getKeyDerivationFunction

public AlgorithmIdentifier getKeyDerivationFunction()
Returns:
the AlgorithmIdentifier of key derivation function.