Name

MGF1ParameterSpec

Synopsis

This class represents parameters for "mask generation function” MGF1 of the OAEP Padding and RSA-PSS signature scheme, defined in the PKCS #1 standard, version 2.1. The constants represent predefined instances of the class, whose digest algorithm matches the constant name.

java.security.spec.MGF1ParameterSpec

Figure 14-96. java.security.spec.MGF1ParameterSpec

public class MGF1ParameterSpec implements AlgorithmParameterSpec {
// Public Constructors
     public MGF1ParameterSpec(String mdName);  
// Public Constants
     public static final MGF1ParameterSpec SHA1;  
     public static final MGF1ParameterSpec SHA256;  
     public static final MGF1ParameterSpec SHA384;  
     public static final MGF1ParameterSpec SHA512;  
// Public Instance Methods
     public String getDigestAlgorithm( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.