Class PBMParameterSpec

java.lang.Object
com.ibm.crypto.hdwrCCA.provider.PBMParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class PBMParameterSpec extends Object implements AlgorithmParameterSpec
This class specifies the set of parameters used with password-based Mac as specified in the RFC 2510
  • Constructor Summary

    Constructors
    Constructor
    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

    Modifier and Type
    Method
    Description
    int
    Returns the iteration count.
    com.ibm.security.x509.AlgorithmId
    Returns the mac
    com.ibm.security.x509.AlgorithmId
    Return the owf
    byte[]
    Returns a clone of the salt.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 function
      iterationCount - 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