Class OAEPParameterSpec

java.lang.Object
javax.crypto.spec.OAEPParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class OAEPParameterSpec
extends Object
implements AlgorithmParameterSpec
The algorithm parameter specification for the OAEP Padding algorithm.

This padding algorithm is defined in the PKCS #1 standard.

  • Field Details

  • Constructor Details

    • OAEPParameterSpec

      public OAEPParameterSpec​(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc)
      Creates a new OAEPParameterSpec instance with the specified message digest algorithm name, mask generation function (mgf) algorithm name, parameters for the mgf algorithm and the source of the label L.
      Parameters:
      mdName - the message digest algorithm name.
      mgfName - the mask generation function algorithm name.
      mgfSpec - the algorithm parameter specification for the mask generation function algorithm.
      pSrc - the source of the label L.
      Throws:
      NullPointerException - if one of mdName, mgfName or pSrc is null.
  • Method Details

    • getDigestAlgorithm

      public String getDigestAlgorithm()
      Returns the algorithm name of the message digest.
      Returns:
      the algorithm name of the message digest.
    • getMGFAlgorithm

      public String getMGFAlgorithm()
      Returns the algorithm name of the mask generation function.
      Returns:
      the algorithm name of the mask generation function.
    • getMGFParameters

      public AlgorithmParameterSpec getMGFParameters()
      Returns the algorithm parameter specification for the mask generation function algorithm.
      Returns:
      the algorithm parameter specification for the mask generation function algorithm.
    • getPSource

      public PSource getPSource()
      Returns the source of the label L.
      Returns:
      the source of the label L.