Top Description Methods
org.bouncycastle.tls.crypto

public Interface TlsCertificate

Known Direct Implementers
org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsCertificate
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1Encodable, .ASN1ObjectIdentifier, org.bouncycastle.tls.SignatureAlgorithm, .SignatureScheme

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

Method Summary

Modifier and TypeMethod and Description
public TlsCertificate
checkUsageInRole(int tlsCertificateRole)

public TlsEncryptor

Returns:

a TlsEncryptor based on this certificate's public key.
createEncryptor
(int tlsCertificateRole)

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

public TlsVerifier
createVerifier(short signatureAlgorithm)

public Tls13Verifier
createVerifier(int signatureScheme)

public byte[]
public byte[]
public short
public BigInteger
public String

Returns:

the OID of this certificate's 'signatureAlgorithm', as a String.
getSigAlgOID
()

public ASN1Encodable
public boolean

Returns:

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

public boolean
supportsSignatureAlgorithmCA(short signatureAlgorithm)

Method Detail

checkUsageInRoleback to summary
public TlsCertificate checkUsageInRole(int tlsCertificateRole) throws IOException
Parameters
tlsCertificateRole:int

TlsCertificateRole

createEncryptorback to summary
public TlsEncryptor createEncryptor(int tlsCertificateRole) throws IOException

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

Parameters
tlsCertificateRole:int

TlsCertificateRole

Returns:TlsEncryptor

a TlsEncryptor based on this certificate's public key.

createVerifierback to summary
public TlsVerifier createVerifier(short signatureAlgorithm) throws IOException
Parameters
signatureAlgorithm:short

SignatureAlgorithm

createVerifierback to summary
public Tls13Verifier createVerifier(int signatureScheme) throws IOException
Parameters
signatureScheme:int

SignatureScheme

getEncodedback to summary
public byte[] getEncoded() throws IOException
getExtensionback to summary
public byte[] getExtension(ASN1ObjectIdentifier extensionOID) throws IOException
getLegacySignatureAlgorithmback to summary
public short getLegacySignatureAlgorithm() throws IOException
Returns:short

SignatureAlgorithm

getSerialNumberback to summary
public BigInteger getSerialNumber()
getSigAlgOIDback to summary
public String getSigAlgOID()
Returns:String

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

getSigAlgParamsback to summary
public ASN1Encodable getSigAlgParams() throws IOException
supportsSignatureAlgorithmback to summary
public boolean supportsSignatureAlgorithm(short signatureAlgorithm) throws IOException
Parameters
signatureAlgorithm:short

SignatureAlgorithm

Returns:boolean

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

supportsSignatureAlgorithmCAback to summary
public boolean supportsSignatureAlgorithmCA(short signatureAlgorithm) throws IOException