public class PSSParameterSpec extends Object implements AlgorithmParameterSpec
Defined in the PKCS #1 v2.1 standard.
| Modifier and Type | Field and Description |
|---|---|
static PSSParameterSpec |
DEFAULT
The default parameter specification.
|
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final PSSParameterSpec DEFAULT
"SHA-1""MGF1"MGF1ParameterSpec.SHA120-1public PSSParameterSpec(int saltLen)
PSSParameterSpec with the specified salt length
and the default values.saltLen - the salt length (in bits).IllegalArgumentException - if saltLen is negative.public PSSParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField)
PSSParameterSpec with the specified message digest
name, mask generation function name, mask generation function parameters,
salt length, and trailer field value.mdName - the name of the message digest algorithm.mgfName - the name of the mask generation function algorithm.mgfSpec - the parameter for the mask generation function algorithm.saltLen - the salt length (in bits).trailerField - the trailer field value.IllegalArgumentException - if saltLen or trailerField is negative.public int getSaltLength()
public String getDigestAlgorithm()
public String getMGFAlgorithm()
public AlgorithmParameterSpec getMGFParameters()
null if none specified.public int getTrailerField()