edu.vt.middleware.crypt.pkcs
Class PBEParameter

java.lang.Object
  extended by edu.vt.middleware.crypt.pkcs.PBEParameter
Direct Known Subclasses:
PBKDF2Parameters

public class PBEParameter
extends Object

Describes the PBEParameter type defined in PKCS#5. It can also be used to model the pkcs-12PbeParams type defined in section B.4 of PKCS#12.

Version:
$Revision: 1818 $
Author:
Middleware Services

Field Summary
protected  int iterationCount
          Number of iterations of mixing function.
protected  byte[] salt
          Digest salt value.
 
Constructor Summary
PBEParameter(byte[] saltBytes, int iterations)
          Creates a new PBE parameter with given values.
 
Method Summary
static PBEParameter decode(org.bouncycastle.asn1.DERSequence params)
          Decodes a DER sequence of PBE parameters into an instance of this class.
 int getIterationCount()
           
 byte[] getSalt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

salt

protected byte[] salt
Digest salt value.


iterationCount

protected int iterationCount
Number of iterations of mixing function.

Constructor Detail

PBEParameter

public PBEParameter(byte[] saltBytes,
                    int iterations)
Creates a new PBE parameter with given values.

Parameters:
saltBytes - Bytes of digest salt.
iterations - Number of iterations of mixing function.
Method Detail

decode

public static PBEParameter decode(org.bouncycastle.asn1.DERSequence params)
Decodes a DER sequence of PBE parameters into an instance of this class.

Parameters:
params - PBE parameters as a DER sequence.
Returns:
Equivalent instance of PBEParameter.

getSalt

public byte[] getSalt()
Returns:
the salt

getIterationCount

public int getIterationCount()
Returns:
the iterationCount


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.