Skip to content

Most visited

Recently visited

navigation
Added in API level 1

PSSParameterSpec

public class PSSParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
   ↳ java.security.spec.PSSParameterSpec


The parameter specification for the RSA-PSS Signature scheme.

Defined in the PKCS #1 v2.1 standard.

Summary

Fields

public static final PSSParameterSpec DEFAULT

The default parameter specification.

Public constructors

PSSParameterSpec(int saltLen)

Creates a new PSSParameterSpec with the specified salt length and the default values.

PSSParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField)

Creates a new PSSParameterSpec with the specified message digest name, mask generation function name, mask generation function parameters, salt length, and trailer field value.

Public methods

String getDigestAlgorithm()

Returns the name of the message digest algorithm.

String getMGFAlgorithm()

Returns the name of the mask generation function algorithm.

AlgorithmParameterSpec getMGFParameters()

Returns the parameter for the mask generation function algorithm.

int getSaltLength()

Returns the length of the salt (in bits).

int getTrailerField()

Returns the trailer field value.

Inherited methods

From class java.lang.Object

Fields

DEFAULT

Added in API level 1
PSSParameterSpec DEFAULT

The default parameter specification. It specifies the following parameters:

  • message digest: "SHA-1"
  • mask generation function (mgf): "MGF1"
  • parameters for the mgf: SHA1
  • salt length: 20
  • trailer field: -1

Public constructors

PSSParameterSpec

Added in API level 1
PSSParameterSpec (int saltLen)

Creates a new PSSParameterSpec with the specified salt length and the default values.

Parameters
saltLen int: the salt length (in bits).
Throws
IllegalArgumentException if saltLen is negative.

PSSParameterSpec

Added in API level 1
PSSParameterSpec (String mdName, 
                String mgfName, 
                AlgorithmParameterSpec mgfSpec, 
                int saltLen, 
                int trailerField)

Creates a new PSSParameterSpec with the specified message digest name, mask generation function name, mask generation function parameters, salt length, and trailer field value.

Parameters
mdName String: the name of the message digest algorithm.
mgfName String: the name of the mask generation function algorithm.
mgfSpec AlgorithmParameterSpec: the parameter for the mask generation function algorithm.
saltLen int: the salt length (in bits).
trailerField int: the trailer field value.
Throws
IllegalArgumentException if saltLen or trailerField is negative.

Public methods

getDigestAlgorithm

Added in API level 1
String getDigestAlgorithm ()

Returns the name of the message digest algorithm.

Returns
String the name of the message digest algorithm.

getMGFAlgorithm

Added in API level 1
String getMGFAlgorithm ()

Returns the name of the mask generation function algorithm.

Returns
String the name of the mask generation function algorithm.

getMGFParameters

Added in API level 1
AlgorithmParameterSpec getMGFParameters ()

Returns the parameter for the mask generation function algorithm.

Returns
AlgorithmParameterSpec the parameter for the mask generation function algorithm, or null if none specified.

getSaltLength

Added in API level 1
int getSaltLength ()

Returns the length of the salt (in bits).

Returns
int the length of the salt (in bits).

getTrailerField

Added in API level 1
int getTrailerField ()

Returns the trailer field value.

Returns
int the trailer field value.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.