@Unstable public class PssSignerParameters extends Object implements AsymmetricCipherParameters
| Constructor and Description |
|---|
PssSignerParameters(AsymmetricKeyParameters keyParams)
Construct default RSASSA-PSS parameters according to PKCS #1 definition of default value.
|
PssSignerParameters(AsymmetricKeyParameters keyParams,
String hashAlgorithm,
int saltLength)
Construct RSASSA-PSS parameters using default trailer and the same digest algorithm for both hash and mgf1.
|
PssSignerParameters(AsymmetricKeyParameters keyParams,
String hashAlgorithm,
String maskGenAlgorithm,
int saltLength)
Construct RSASSA-PSS parameters using custom parameters.
|
PssSignerParameters(AsymmetricKeyParameters keyParams,
String hashAlgorithm,
String maskGenAlgorithm,
int saltLength,
int trailerField)
Construct RSASSA-PSS parameters using custom parameters.
|
| Modifier and Type | Method and Description |
|---|---|
AsymmetricKeyParameters |
getKeyParameters() |
PssParameters |
getPssParameters() |
public PssSignerParameters(AsymmetricKeyParameters keyParams)
keyParams - the key to use for the RSA cipher.public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, int saltLength)
keyParams - the key to use for the RSA cipher.hashAlgorithm - digest algorithm to use for hash and mgf1.saltLength - size of salt in bytes.public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, String maskGenAlgorithm, int saltLength)
keyParams - the key to use for the RSA cipher.hashAlgorithm - digest algorithm to use for hash.maskGenAlgorithm - digest algorithm to use for mgf1.saltLength - size of salt in bytes.public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, String maskGenAlgorithm, int saltLength, int trailerField)
keyParams - the key to use for the RSA cipher.hashAlgorithm - digest algorithm to use for hash.maskGenAlgorithm - digest algorithm to use for mgf1.saltLength - size of salt in bytes.trailerField - trailer selection, only valid value is 1.public AsymmetricKeyParameters getKeyParameters()
public PssParameters getPssParameters()
Copyright © 2004–2014 XWiki. All rights reserved.