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

Constants
MGF1ParameterSpec SHA1 The predefined MGF1 parameter specification with an "SHA-1" message digest.
MGF1ParameterSpec SHA256 The predefined MGF1 parameter specification with an "SHA-256" message digest.
MGF1ParameterSpec SHA384 The predefined MGF1 parameter specification with an "SHA-384" message digest.
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

Constants

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

public MGF1ParameterSpec (String mdName)

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 ()

Returns the name of the message digest algorithm.

Returns
  • the name of the message digest algorithm.