iText 9.8.0 API
iText.Bouncycastle.Crypto.SignerBC Class Reference

Wrapper class for Org.BouncyCastle.Crypto.ISigner. More...

Inheritance diagram for iText.Bouncycastle.Crypto.SignerBC:
iText.Commons.Bouncycastle.Crypto.ISigner

Public Member Functions

  SignerBC (Org.BouncyCastle.Crypto.ISigner iSigner)
  Creates new wrapper instance for Org.BouncyCastle.Crypto.ISigner. More...
 
virtual Org.BouncyCastle.Crypto.ISigner  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[] digest)
  Calls actual Update method for the wrapped ISigner object. More...
 
bool  VerifySignature (byte[] digest)
  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[] digest)
  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 Org.BouncyCastle.Crypto.ISigner.

Constructor & Destructor Documentation

◆ SignerBC()

iText.Bouncycastle.Crypto.SignerBC.SignerBC ( Org.BouncyCastle.Crypto.ISigner  iSigner )
inline

Creates new wrapper instance for Org.BouncyCastle.Crypto.ISigner.

Parameters
iSigner

Org.BouncyCastle.Crypto.ISigner to be wrapped

Member Function Documentation

◆ Equals()

override bool iText.Bouncycastle.Crypto.SignerBC.Equals ( Object  o )
inline

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

◆ GenerateSignature()

byte [] iText.Bouncycastle.Crypto.SignerBC.GenerateSignature ( )
inline

Calls actual GenerateSignature method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ GetHashCode()

override int iText.Bouncycastle.Crypto.SignerBC.GetHashCode ( )
inline

Returns a hash code value based on the wrapped object.

◆ GetISigner()

virtual Org.BouncyCastle.Crypto.ISigner iText.Bouncycastle.Crypto.SignerBC.GetISigner ( )
inlinevirtual

Gets actual org.bouncycastle object being wrapped.

Returns
wrapped Org.BouncyCastle.Crypto.ISigner.

◆ InitRsaPssSigner()

void iText.Bouncycastle.Crypto.SignerBC.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.Bouncycastle.Crypto.SignerBC.InitSign ( IPrivateKey  key )
inline

Calls actual InitVerify method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ InitVerify()

void iText.Bouncycastle.Crypto.SignerBC.InitVerify ( IPublicKey  publicKey )
inline

Calls actual InitVerify method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ SetDigestAlgorithm()

void iText.Bouncycastle.Crypto.SignerBC.SetDigestAlgorithm ( string  algorithm )
inline

Sets hash and encryption algorithms for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ ToString()

override String iText.Bouncycastle.Crypto.SignerBC.ToString ( )
inline

Delegates toString method call to the wrapped object.

◆ Update() [1/2]

void iText.Bouncycastle.Crypto.SignerBC.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.Bouncycastle.Crypto.SignerBC.Update ( byte[]  digest )
inline

Calls actual Update method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ UpdateVerifier()

void iText.Bouncycastle.Crypto.SignerBC.UpdateVerifier ( byte[]  digest )
inline

Calls actual UpdateVerifier method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.

◆ VerifySignature()

bool iText.Bouncycastle.Crypto.SignerBC.VerifySignature ( byte[]  digest )
inline

Calls actual VerifySignature method for the wrapped ISigner object.

Implements iText.Commons.Bouncycastle.Crypto.ISigner.