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
Modifier and Type Method Description StringgetDigestAlgorithm()Returns the name of the message digest algorithm.
-
Field Details
-
SHA1
The predefined MGF1 parameter specification with an "SHA-1" message digest. -
SHA256
The predefined MGF1 parameter specification with an "SHA-256" message digest. -
SHA384
The predefined MGF1 parameter specification with an "SHA-384" message digest. -
SHA512
The predefined MGF1 parameter specification with an "SHA-512" message digest.
-
-
Constructor Details
-
MGF1ParameterSpec
Creates a newMGF1ParameterSpecwith the specified message digest algorithm name.- Parameters:
mdName- the name of the message digest algorithm.
-
-
Method Details
-
getDigestAlgorithm
Returns the name of the message digest algorithm.- Returns:
- the name of the message digest algorithm.
-