to top
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 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
  • the name of the message digest algorithm.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.