| java.lang.Object | |
| ↳ | java.security.spec.PSSParameterSpec |
The parameter specification for the RSA-PSS Signature scheme.
Defined in the PKCS #1 v2.1 standard.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DEFAULT | The default parameter specification. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
PSSParameterSpec with the specified salt length
and the default values.
| |||||||||||
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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the name of the message digest algorithm.
| |||||||||||
Returns the name of the mask generation function algorithm.
| |||||||||||
Returns the parameter for the mask generation function algorithm.
| |||||||||||
Returns the length of the salt (in bits).
| |||||||||||
Returns the trailer field value.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
The default parameter specification. It specifies the following parameters:
"SHA-1""MGF1"SHA120-1Creates 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.
|
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.
|
Returns the name of the message digest algorithm.
| Returns | |
|---|---|
String |
the name of the message digest algorithm. |
Returns the name of the mask generation function algorithm.
| Returns | |
|---|---|
String |
the name of the mask generation function algorithm. |
Returns the parameter for the mask generation function algorithm.
| Returns | |
|---|---|
AlgorithmParameterSpec |
the parameter for the mask generation function algorithm, or
null if none specified.
|
Returns the length of the salt (in bits).
| Returns | |
|---|---|
int |
the length of the salt (in bits). |
Returns the trailer field value.
| Returns | |
|---|---|
int |
the trailer field value. |