Skip to content

Most visited

Recently visited

navigation
Added in API level 1

OAEPParameterSpec

public class OAEPParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
   ↳ javax.crypto.spec.OAEPParameterSpec


The algorithm parameter specification for the OAEP Padding algorithm.

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

Summary

Fields

public static final OAEPParameterSpec DEFAULT

The algorithm parameter instance with default values.

Public constructors

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.

Public methods

String getDigestAlgorithm()

Returns the algorithm name of the message digest.

String getMGFAlgorithm()

Returns the algorithm name of the mask generation function.

AlgorithmParameterSpec getMGFParameters()

Returns the algorithm parameter specification for the mask generation function algorithm.

PSource getPSource()

Returns the source of the label L.

Inherited methods

From class java.lang.Object

Fields

DEFAULT

Added in API level 1
OAEPParameterSpec DEFAULT

The algorithm parameter instance with default values.

It uses the following parameters:

  • message digest : "SHA-1"
  • mask generation function (mgf) : "MGF1"
  • parameters for the mgf : "SHA-1" SHA1
  • the source of the label L: DEFAULT

Public constructors

OAEPParameterSpec

Added in API level 1
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 String: the message digest algorithm name.
mgfName String: the mask generation function algorithm name.
mgfSpec AlgorithmParameterSpec: the algorithm parameter specification for the mask generation function algorithm.
pSrc PSource: the source of the label L.
Throws
NullPointerException if one of mdName, mgfName or pSrc is null.

Public methods

getDigestAlgorithm

Added in API level 1
String getDigestAlgorithm ()

Returns the algorithm name of the message digest.

Returns
String the algorithm name of the message digest.

getMGFAlgorithm

Added in API level 1
String getMGFAlgorithm ()

Returns the algorithm name of the mask generation function.

Returns
String the algorithm name of the mask generation function.

getMGFParameters

Added in API level 1
AlgorithmParameterSpec getMGFParameters ()

Returns the algorithm parameter specification for the mask generation function algorithm.

Returns
AlgorithmParameterSpec the algorithm parameter specification for the mask generation function algorithm.

getPSource

Added in API level 1
PSource getPSource ()

Returns the source of the label L.

Returns
PSource the source of the label L.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.