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
cryptoParamsTlsCryptoParameterssignerTlsSignercertificateCertificatesignatureAndHashAlgorithmSignatureAndHashAlgorithm
Fields
m_certificate
protected readonly Certificate m_certificate
Field Value
m_cryptoParams
protected readonly TlsCryptoParameters m_cryptoParams
Field Value
m_signatureAndHashAlgorithm
protected readonly SignatureAndHashAlgorithm m_signatureAndHashAlgorithm
Field Value
m_signer
protected readonly TlsSigner m_signer
Field Value
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
hashbyte[]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
GetStreamSigner()
public virtual TlsStreamSigner GetStreamSigner()