Package java.security.spec
Class MGF1ParameterSpec
- java.lang.Object
-
- java.security.spec.MGF1ParameterSpec
-
- All Implemented Interfaces:
AlgorithmParameterSpec
public class MGF1ParameterSpec extends Object implements AlgorithmParameterSpec
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
-
-
Field Summary
Fields Modifier and Type Field Description static MGF1ParameterSpecSHA1The predefined MGF1 parameter specification with an "SHA-1" message digest.static MGF1ParameterSpecSHA256The predefined MGF1 parameter specification with an "SHA-256" message digest.static MGF1ParameterSpecSHA384The predefined MGF1 parameter specification with an "SHA-384" message digest.static MGF1ParameterSpecSHA512The predefined MGF1 parameter specification with an "SHA-512" message digest.
-
Constructor Summary
Constructors Constructor Description MGF1ParameterSpec(String mdName)Creates a newMGF1ParameterSpecwith the specified message digest algorithm name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDigestAlgorithm()Returns the name of the message digest algorithm.
-
-
-
Field Detail
-
SHA1
public static final MGF1ParameterSpec SHA1
The predefined MGF1 parameter specification with an "SHA-1" message digest.
-
SHA256
public static final MGF1ParameterSpec SHA256
The predefined MGF1 parameter specification with an "SHA-256" message digest.
-
SHA384
public static final MGF1ParameterSpec SHA384
The predefined MGF1 parameter specification with an "SHA-384" message digest.
-
SHA512
public static final MGF1ParameterSpec SHA512
The predefined MGF1 parameter specification with an "SHA-512" message digest.
-
-
Constructor Detail
-
MGF1ParameterSpec
public MGF1ParameterSpec(String mdName)
Creates a newMGF1ParameterSpecwith the specified message digest algorithm name.- Parameters:
mdName- the name of the message digest algorithm.
-
-
Method Detail
-
getDigestAlgorithm
public String getDigestAlgorithm()
Returns the name of the message digest algorithm.- Returns:
- the name of the message digest algorithm.
-
-