Table of Contents

Class DefaultTlsCredentialedSigner

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll

Container class for generating signatures that carries the signature type, parameters, public key certificate and public key's associated signer object.

public class DefaultTlsCredentialedSigner : TlsCredentialedSigner, TlsCredentials
Inheritance
DefaultTlsCredentialedSigner
Implements
Derived
Inherited Members

Constructors

DefaultTlsCredentialedSigner(TlsCryptoParameters, TlsSigner, Certificate, SignatureAndHashAlgorithm)

public DefaultTlsCredentialedSigner(TlsCryptoParameters cryptoParams, TlsSigner signer, Certificate certificate, SignatureAndHashAlgorithm signatureAndHashAlgorithm)

Parameters

cryptoParams TlsCryptoParameters
signer TlsSigner
certificate Certificate
signatureAndHashAlgorithm SignatureAndHashAlgorithm

Fields

m_certificate

protected readonly Certificate m_certificate

Field Value

Certificate

m_cryptoParams

protected readonly TlsCryptoParameters m_cryptoParams

Field Value

TlsCryptoParameters

m_signatureAndHashAlgorithm

protected readonly SignatureAndHashAlgorithm m_signatureAndHashAlgorithm

Field Value

SignatureAndHashAlgorithm

m_signer

protected readonly TlsSigner m_signer

Field Value

TlsSigner

Properties

Certificate

Return the certificate structure representing our identity.

public virtual Certificate Certificate { get; }

Property Value

Certificate

our certificate structure.

SignatureAndHashAlgorithm

Return the algorithm IDs for the signature algorithm and the associated hash it uses.

public virtual SignatureAndHashAlgorithm SignatureAndHashAlgorithm { get; }

Property Value

SignatureAndHashAlgorithm

the full algorithm details for the signature.

Methods

GenerateRawSignature(byte[])

Generate a signature against the passed in hash.

public virtual byte[] GenerateRawSignature(byte[] hash)

Parameters

hash byte[]

a message digest calculated across the message the signature is to apply to.

Returns

byte[]

an encoded signature.

Exceptions

IOException

if the hash cannot be processed, or there is an issue with the private credentials.

GetEffectiveAlgorithm()

protected virtual SignatureAndHashAlgorithm GetEffectiveAlgorithm()

Returns

SignatureAndHashAlgorithm

GetStreamSigner()

public virtual TlsStreamSigner GetStreamSigner()

Returns

TlsStreamSigner

Exceptions

IOException