java.lang.Object
com.ibm.crypto.hdwrCCA.provider.PBMParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
This class specifies the set of parameters used with password-based
Mac as specified in the RFC 2510
-
Constructor Summary
ConstructorsConstructorDescriptionPBMParameterSpec(byte[] salt, com.ibm.security.x509.AlgorithmId owf, int iterationCount, com.ibm.security.x509.AlgorithmId mac) Constructs a parameter set for password-based Mac -
Method Summary
-
Constructor Details
-
PBMParameterSpec
public PBMParameterSpec(byte[] salt, com.ibm.security.x509.AlgorithmId owf, int iterationCount, com.ibm.security.x509.AlgorithmId mac) Constructs a parameter set for password-based Mac- Parameters:
salt- the salt.owf- the one-way functioniterationCount- the iteration count.mac- the mac
-
-
Method Details
-
getSalt
public byte[] getSalt()Returns a clone of the salt.Note that this method returns a clone of sensitive information. It is the caller's responsibility to zero out the information after it is no longer needed.
- Returns:
- A clone of the salt
-
getOwf
public com.ibm.security.x509.AlgorithmId getOwf()Return the owf- Returns:
- the owf
-
getIterationCount
public int getIterationCount()Returns the iteration count.- Returns:
- the iteration count
-
getMac
public com.ibm.security.x509.AlgorithmId getMac()Returns the mac- Returns:
- the mac
-