Table of Contents

Interface TlsCertificate

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

Interface providing the functional representation of a single X.509 certificate.

public interface TlsCertificate

Properties

SerialNumber

BigInteger SerialNumber { get; }

Property Value

BigInteger

SigAlgOid

string SigAlgOid { get; }

Property Value

string

the OID of this certificate's 'signatureAlgorithm', as a string.

Methods

CheckUsageInRole(int)

TlsCertificate CheckUsageInRole(int tlsCertificateRole)

Parameters

tlsCertificateRole int

TlsCertificateRole

Returns

TlsCertificate

Exceptions

IOException

CreateEncryptor(int)

Return an encryptor based on the public key in this certificate.

TlsEncryptor CreateEncryptor(int tlsCertificateRole)

Parameters

tlsCertificateRole int

TlsCertificateRole

Returns

TlsEncryptor

a TlsEncryptor based on this certificate's public key.

Exceptions

IOException

CreateVerifier(short)

TlsVerifier CreateVerifier(short signatureAlgorithm)

Parameters

signatureAlgorithm short

SignatureAlgorithm

Returns

TlsVerifier

Exceptions

IOException

CreateVerifier(int)

Tls13Verifier CreateVerifier(int signatureScheme)

Parameters

signatureScheme int

SignatureScheme

Returns

Tls13Verifier

Exceptions

IOException

GetEncoded()

byte[] GetEncoded()

Returns

byte[]

Exceptions

IOException

GetExtension(DerObjectIdentifier)

byte[] GetExtension(DerObjectIdentifier extensionOid)

Parameters

extensionOid DerObjectIdentifier

Returns

byte[]

Exceptions

IOException

GetLegacySignatureAlgorithm()

short GetLegacySignatureAlgorithm()

Returns

short

SignatureAlgorithm

Exceptions

IOException

GetSigAlgParams()

Asn1Encodable GetSigAlgParams()

Returns

Asn1Encodable

Exceptions

IOException

SupportsSignatureAlgorithm(short)

bool SupportsSignatureAlgorithm(short signatureAlgorithm)

Parameters

signatureAlgorithm short

SignatureAlgorithm

Returns

bool

true if (and only if) this certificate can be used to verify the given signature algorithm.

Exceptions

IOException

SupportsSignatureAlgorithmCA(short)

bool SupportsSignatureAlgorithmCA(short signatureAlgorithm)

Parameters

signatureAlgorithm short

Returns

bool

Exceptions

IOException