iText 9.8.0 API
iText.Bouncycastlefips.Crypto.SignerBCFips Class Reference

Wrapper class for IStreamCalculator signer. More...

Inheritance diagram for iText.Bouncycastlefips.Crypto.SignerBCFips:
iText.Commons.Bouncycastle.Crypto.ISigner

Public Member Functions

  SignerBCFips (IStreamCalculator< IVerifier > iSigner)
  Creates new wrapper instance for signer. More...
 
virtual IStreamCalculator< IVerifier >  GetISigner ()
  Gets actual org.bouncycastle object being wrapped. More...
 
void  InitVerify (IPublicKey publicKey)
  Calls actual InitVerify method for the wrapped ISigner object. More...
 
void  InitSign (IPrivateKey key)
  Calls actual InitVerify method for the wrapped ISigner object. More...
 
void  InitRsaPssSigner (string digestAlgoName, int saltLen, int trailerField)
  Creates actual signer object to create RSASSA-PSS signature More...
 
void  Update (byte[] buf, int off, int len)
  Calls actual Update method for the wrapped ISigner object. More...
 
void  Update (byte[] dig)
  Calls actual Update method for the wrapped ISigner object. More...
 
bool  VerifySignature (byte[] dig)
  Calls actual VerifySignature method for the wrapped ISigner object. More...
 
byte[]  GenerateSignature ()
  Calls actual GenerateSignature method for the wrapped ISigner object. More...
 
void  UpdateVerifier (byte[] buf)
  Calls actual UpdateVerifier method for the wrapped ISigner object. More...
 
void  SetDigestAlgorithm (string algorithm)
  Sets hash and encryption algorithms for the wrapped ISigner object. More...
 
override bool  Equals (Object o)
  Indicates whether some other object is "equal to" this one. Compares wrapped objects. More...
 
override int  GetHashCode ()
  Returns a hash code value based on the wrapped object. More...
 
override String  ToString ()
  Delegates toString method call to the wrapped object. More...
 

Detailed Description

Wrapper class for IStreamCalculator signer.

Constructor & Destructor Documentation

◆ SignerBCFips()

iText.Bouncycastlefips.Crypto.SignerBCFips.SignerBCFips ( IStreamCalculator< IVerifier >  iSigner )
inline

Creates new wrapper instance for signer.

Parameters
iSigner

IStreamCalculator to be wrapped

Member Function Documentation

◆ Equals()

override bool iText.Bouncycastlefips.Crypto.SignerBCFips.Equals ( Object  o )
inline

Indicates whether some other object is "equal to" this one. Compares wrapped objects.

◆ GenerateSignature()

byte [] iText.Bouncycastlefips.Crypto.SignerBCFips.GenerateSignature ( )
inline

Calls actual GenerateSignature method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ GetHashCode()

override int iText.Bouncycastlefips.Crypto.SignerBCFips.GetHashCode ( )
inline

Returns a hash code value based on the wrapped object.

◆ GetISigner()

virtual IStreamCalculator iText.Bouncycastlefips.Crypto.SignerBCFips.GetISigner ( )
inlinevirtual

Gets actual org.bouncycastle object being wrapped.

Returns
wrapped IStreamCalculator.

◆ InitRsaPssSigner()

void iText.Bouncycastlefips.Crypto.SignerBCFips.InitRsaPssSigner ( string  digestAlgoName,
int  saltLen,
int  trailerField 
)
inline

Creates actual signer object to create RSASSA-PSS signature

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ InitSign()

void iText.Bouncycastlefips.Crypto.SignerBCFips.InitSign ( IPrivateKey  key )
inline

Calls actual InitVerify method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ InitVerify()

void iText.Bouncycastlefips.Crypto.SignerBCFips.InitVerify ( IPublicKey  publicKey )
inline

Calls actual InitVerify method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ SetDigestAlgorithm()

void iText.Bouncycastlefips.Crypto.SignerBCFips.SetDigestAlgorithm ( string  algorithm )
inline

Sets hash and encryption algorithms for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ ToString()

override String iText.Bouncycastlefips.Crypto.SignerBCFips.ToString ( )
inline

Delegates toString method call to the wrapped object.

◆ Update() [1/2]

void iText.Bouncycastlefips.Crypto.SignerBCFips.Update ( byte[]  buf,
int  off,
int  len 
)
inline

Calls actual Update method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ Update() [2/2]

void iText.Bouncycastlefips.Crypto.SignerBCFips.Update ( byte[]  dig )
inline

Calls actual Update method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ UpdateVerifier()

void iText.Bouncycastlefips.Crypto.SignerBCFips.UpdateVerifier ( byte[]  buf )
inline

Calls actual UpdateVerifier method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ VerifySignature()

bool iText.Bouncycastlefips.Crypto.SignerBCFips.VerifySignature ( byte[]  dig )
inline

Calls actual VerifySignature method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.