Android APIs
public class

MGF1ParameterSpec

extends Object
implements AlgorithmParameterSpec
java.lang.Object
   ↳ java.security.spec.MGF1ParameterSpec

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final MGF1ParameterSpec SHA1

Added in API level 1

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

public static final MGF1ParameterSpec SHA256

Added in API level 1

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

public static final MGF1ParameterSpec SHA384

Added in API level 1

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

public static final MGF1ParameterSpec SHA512

Added in API level 1

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

Public Constructors

public MGF1ParameterSpec (String mdName)

Added in API level 1

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

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

Public Methods

public String getDigestAlgorithm ()

Added in API level 1

Returns the name of the message digest algorithm.

Returns
String the name of the message digest algorithm.