Package org.xwiki.crypto.signer.params
Class PssSignerParameters
- java.lang.Object
-
- org.xwiki.crypto.signer.params.PssSignerParameters
-
- All Implemented Interfaces:
AsymmetricCipherParameters
,CipherParameters
public class PssSignerParameters extends Object implements AsymmetricCipherParameters
PSS signer parameters.- Since:
- 5.4RC1
- Version:
- $Id: b550ba0118c4f9b5e4bcc36821292796b17f8895 $
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricKeyParameters
getKeyParameters()
PssParameters
getPssParameters()
-
-
-
Constructor Detail
-
PssSignerParameters
public PssSignerParameters(AsymmetricKeyParameters keyParams)
Construct default RSASSA-PSS parameters according to PKCS #1 definition of default value.- Parameters:
keyParams
- the key to use for the RSA cipher.
-
PssSignerParameters
public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, int saltLength)
Construct RSASSA-PSS parameters using default trailer and the same digest algorithm for both hash and mgf1.- Parameters:
keyParams
- the key to use for the RSA cipher.hashAlgorithm
- digest algorithm to use for hash and mgf1.saltLength
- size of salt in bytes.
-
PssSignerParameters
public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, String maskGenAlgorithm, int saltLength)
Construct RSASSA-PSS parameters using custom parameters.- Parameters:
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.
-
PssSignerParameters
public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, String maskGenAlgorithm, int saltLength, int trailerField)
Construct RSASSA-PSS parameters using custom parameters.- Parameters:
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.
-
-
Method Detail
-
getKeyParameters
public AsymmetricKeyParameters getKeyParameters()
- Returns:
- the key paramaters.
-
getPssParameters
public PssParameters getPssParameters()
- Returns:
- the PSS parameters.
-
-