com.ibm.crypto.hdwrCCA.provider
Class PBMParameterSpec
- java.lang.Object
-
- com.ibm.crypto.hdwrCCA.provider.PBMParameterSpec
-
- All Implemented Interfaces:
- java.security.spec.AlgorithmParameterSpec
public class PBMParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpecThis class specifies the set of parameters used with password-based Mac as specified in the RFC 2510
-
-
Constructor Summary
Constructors Constructor and Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetIterationCount()Returns the iteration count.com.ibm.security.x509.AlgorithmIdgetMac()Returns the maccom.ibm.security.x509.AlgorithmIdgetOwf()Return the owfbyte[]getSalt()Returns a clone of the salt.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-