FileDocCategorySizeDatePackage
MGF1ParameterSpec.javaAPI DocAndroid 1.5 API3015Wed May 06 22:41:06 BST 2009java.security.spec

MGF1ParameterSpec

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

since
Android 1.0

Fields Summary
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.
private final String
mdName
Constructors Summary
public MGF1ParameterSpec(String mdName)
Creates a new {@code MGF1ParameterSpec} with the specified message digest algorithm name.

param
mdName the name of the message digest algorithm.
since
Android 1.0


                                             
       
        this.mdName = mdName;
        if (this.mdName == null) {
            throw new NullPointerException(Messages.getString("security.80")); //$NON-NLS-1$
        }
    
Methods Summary
public java.lang.StringgetDigestAlgorithm()
Returns the name of the message digest algorithm.

return
the name of the message digest algorithm.
since
Android 1.0

        return mdName;