iText 8.0.5 API
iText.Signatures.RSASSAPSSMechanismParams Class Reference

Encode the signer's parameters for producing an RSASSA-PSS signature. More...

Inheritance diagram for iText.Signatures.RSASSAPSSMechanismParams:
iText.Signatures.IApplicableSignatureParams iText.Signatures.ISignatureMechanismParams

Public Member Functions

  RSASSAPSSMechanismParams (IDerObjectIdentifier digestAlgoOid, int saltLen, int trailerField)
  Instantiate RSASSA-PSS parameters with MGF1 for a given digest algorithm OID, salt length and trailer field value. More...
 
virtual IAsn1Encodable  ToEncodable ()
  Represent the parameters as an iText.Commons.Bouncycastle.Asn1.IAsn1Encodable for inclusion in a signature object. More...
 
virtual void  Apply (ISigner signature)
  Apply the parameters to a iText.Commons.Bouncycastle.Crypto.ISigner. More...
 

Static Public Member Functions

static iText.Signatures.RSASSAPSSMechanismParams  CreateForDigestAlgorithm (String digestAlgorithmName)
  Instantiate RSASSA-PSS parameters with MGF1 for the given algorithm name. More...
 

Static Public Attributes

const int  DEFAULT_TRAILER_FIELD = 1
  Default value of the trailer field parameter. More...
 

Detailed Description

Encode the signer's parameters for producing an RSASSA-PSS signature.

Encode the signer's parameters for producing an RSASSA-PSS signature. Note that this class is intended for use in the signing process only, so it does not need to be able to represent all possible parameter configurations; only the ones we consider reasonable. For the purposes of this class, the mask generation function is always MGF1, and the associated digest function is the same as the digest function used in the signing process.

Constructor & Destructor Documentation

◆ RSASSAPSSMechanismParams()

iText.Signatures.RSASSAPSSMechanismParams.RSASSAPSSMechanismParams ( IDerObjectIdentifier  digestAlgoOid,
int  saltLen,
int  trailerField 
)
inline

Instantiate RSASSA-PSS parameters with MGF1 for a given digest algorithm OID, salt length and trailer field value.

Parameters
digestAlgoOid the digest algorithm OID that will be used for both the digest and MGF
saltLen the salt length
trailerField the trailer field

Member Function Documentation

◆ Apply()

virtual void iText.Signatures.RSASSAPSSMechanismParams.Apply ( ISigner  signature )
inlinevirtual

◆ CreateForDigestAlgorithm()

static iText.Signatures.RSASSAPSSMechanismParams iText.Signatures.RSASSAPSSMechanismParams.CreateForDigestAlgorithm ( String  digestAlgorithmName )
inlinestatic

Instantiate RSASSA-PSS parameters with MGF1 for the given algorithm name.

Parameters
digestAlgorithmName the name of the digest algorithm

◆ ToEncodable()

virtual IAsn1Encodable iText.Signatures.RSASSAPSSMechanismParams.ToEncodable ( )
inlinevirtual

Represent the parameters as an iText.Commons.Bouncycastle.Asn1.IAsn1Encodable for inclusion in a signature object.

Implements iText.Signatures.ISignatureMechanismParams.

Member Data Documentation

◆ DEFAULT_TRAILER_FIELD

const int iText.Signatures.RSASSAPSSMechanismParams.DEFAULT_TRAILER_FIELD = 1
static

Default value of the trailer field parameter.