Skip to content

Most visited

Recently visited

navigation
Added in API level 1

MGF1ParameterSpec

public class MGF1ParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
   ↳ java.security.spec.MGF1ParameterSpec


The parameter specification for the Mask Generation Function (MGF1) in the RSA-PSS Signature and OAEP Padding scheme.

Defined in the PKCS #1 v2.1 standard

Summary

Fields

public static final MGF1ParameterSpec SHA1

The predefined MGF1 parameter specification with an "SHA-1" message digest.

public static final MGF1ParameterSpec SHA256

The predefined MGF1 parameter specification with an "SHA-256" message digest.

public static final MGF1ParameterSpec SHA384

The predefined MGF1 parameter specification with an "SHA-384" message digest.

public static final MGF1ParameterSpec SHA512

The predefined MGF1 parameter specification with an "SHA-512" message digest.

Public constructors

MGF1ParameterSpec(String mdName)

Creates a new MGF1ParameterSpec with the specified message digest algorithm name.

Public methods

String getDigestAlgorithm()

Returns the name of the message digest algorithm.

Inherited methods

From class java.lang.Object

Fields

SHA1

Added in API level 1
MGF1ParameterSpec SHA1

The predefined MGF1 parameter specification with an "SHA-1" message digest.

SHA256

Added in API level 1
MGF1ParameterSpec SHA256

The predefined MGF1 parameter specification with an "SHA-256" message digest.

SHA384

Added in API level 1
MGF1ParameterSpec SHA384

The predefined MGF1 parameter specification with an "SHA-384" message digest.

SHA512

Added in API level 1
MGF1ParameterSpec SHA512

The predefined MGF1 parameter specification with an "SHA-512" message digest.

Public constructors

MGF1ParameterSpec

Added in API level 1
MGF1ParameterSpec (String mdName)

Creates a new MGF1ParameterSpec with the specified message digest algorithm name.

Parameters
mdName String: the name of the message digest algorithm.

Public methods

getDigestAlgorithm

Added in API level 1
String getDigestAlgorithm ()

Returns the name of the message digest algorithm.

Returns
String the name of the message digest algorithm.
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.