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.AlgorithmParameterSpec
    This 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
      int getIterationCount()
      Returns the iteration count.
      com.ibm.security.x509.AlgorithmId getMac()
      Returns the mac
      com.ibm.security.x509.AlgorithmId getOwf()
      Return the owf
      byte[] getSalt()
      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 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 function
        iterationCount - 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
� Portions Copyright 1997, 2022 IBM Corporation. All rights reserved. � Portions Copyright 1997, 2022, Oracle and/or its affiliates. All rights reserved.