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
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
tlsCertificateRoleint
Returns
Exceptions
CreateEncryptor(int)
Return an encryptor based on the public key in this certificate.
TlsEncryptor CreateEncryptor(int tlsCertificateRole)
Parameters
tlsCertificateRoleint
Returns
- TlsEncryptor
a TlsEncryptor based on this certificate's public key.
Exceptions
CreateVerifier(short)
TlsVerifier CreateVerifier(short signatureAlgorithm)
Parameters
signatureAlgorithmshort
Returns
Exceptions
CreateVerifier(int)
Tls13Verifier CreateVerifier(int signatureScheme)
Parameters
signatureSchemeint
Returns
Exceptions
GetEncoded()
byte[] GetEncoded()
Returns
- byte[]
Exceptions
GetExtension(DerObjectIdentifier)
byte[] GetExtension(DerObjectIdentifier extensionOid)
Parameters
extensionOidDerObjectIdentifier
Returns
- byte[]
Exceptions
GetLegacySignatureAlgorithm()
short GetLegacySignatureAlgorithm()
Returns
Exceptions
GetSigAlgParams()
Asn1Encodable GetSigAlgParams()
Returns
Exceptions
SupportsSignatureAlgorithm(short)
bool SupportsSignatureAlgorithm(short signatureAlgorithm)
Parameters
signatureAlgorithmshort
Returns
- bool
true if (and only if) this certificate can be used to verify the given signature algorithm.
Exceptions
SupportsSignatureAlgorithmCA(short)
bool SupportsSignatureAlgorithmCA(short signatureAlgorithm)
Parameters
signatureAlgorithmshort