Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

public Class BcTlsCertificate

extends BcTlsRawKeyCertificate
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1Encodable, .ASN1Encoding, .ASN1ObjectIdentifier, .ASN1Primitive, org.bouncycastle.asn1.x509.Certificate, .Extension, .Extensions, .KeyUsage, org.bouncycastle.tls.AlertDescription, .TlsFatalAlert, .TlsUtils, org.bouncycastle.tls.crypto.TlsCertificate, org.bouncycastle.util.Arrays

Implementation class for a single X.509 certificate based on the BC light-weight API.

Field Summary

Modifier and TypeField and Description
protected final Certificate
Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate:
cryptokeyInfopubKeyDHpubKeyECpubKeyEd25519pubKeyEd448pubKeyRSA

Constructor Summary

AccessConstructor and Description
public
BcTlsCertificate(BcTlsCrypto crypto, byte[] encoding)

public

Method Summary

Modifier and TypeMethod and Description
public static BcTlsCertificate
convert(BcTlsCrypto crypto, TlsCertificate certificate)

public Certificate
public byte[]
public byte[]
public BigInteger
public String
public ASN1Encodable
public static Certificate
parseCertificate(byte[] encoding)

protected boolean
Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate:
checkUsageInRolecreateEncryptorcreateVerifiercreateVerifiergetLegacySignatureAlgorithmgetPubKeyDHgetPubKeyDSSgetPubKeyECgetPubKeyEd25519getPubKeyEd448getPubKeyRSAgetPublicKeygetSubjectPublicKeyInfosupportsRSA_PKCS1supportsRSA_PSS_PSSsupportsRSA_PSS_RSAEsupportsSignatureAlgorithmsupportsSignatureAlgorithmsupportsSignatureAlgorithmCAvalidateKeyUsagevalidateRSA_PKCS1validateRSA_PSS_PSSvalidateRSA_PSS_RSAE

Field Detail

certificateback to summary
protected final Certificate certificate

Constructor Detail

BcTlsCertificateback to summary
public BcTlsCertificate(BcTlsCrypto crypto, byte[] encoding) throws IOException
BcTlsCertificateback to summary
public BcTlsCertificate(BcTlsCrypto crypto, Certificate certificate)

Method Detail

convertback to summary
public static BcTlsCertificate convert(BcTlsCrypto crypto, TlsCertificate certificate) throws IOException
getCertificateback to summary
public Certificate getCertificate()
getEncodedback to summary
public byte[] getEncoded() throws IOException

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate.getEncoded.

Implements org.bouncycastle.tls.crypto.TlsCertificate.getEncoded.

getExtensionback to summary
public byte[] getExtension(ASN1ObjectIdentifier extensionOID) throws IOException

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate.getExtension.

Implements org.bouncycastle.tls.crypto.TlsCertificate.getExtension.

getSerialNumberback to summary
public BigInteger getSerialNumber()

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate.getSerialNumber.

Implements org.bouncycastle.tls.crypto.TlsCertificate.getSerialNumber.

getSigAlgOIDback to summary
public String getSigAlgOID()

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate.getSigAlgOID.

Implements org.bouncycastle.tls.crypto.TlsCertificate.getSigAlgOID.

Returns:String

Doc from org.bouncycastle.tls.crypto.TlsCertificate.getSigAlgOID.

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

getSigAlgParamsback to summary
public ASN1Encodable getSigAlgParams()

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate.getSigAlgParams.

Implements org.bouncycastle.tls.crypto.TlsCertificate.getSigAlgParams.

parseCertificateback to summary
public static Certificate parseCertificate(byte[] encoding) throws IOException
supportsKeyUsageback to summary
protected boolean supportsKeyUsage(int keyUsageBit)

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate.supportsKeyUsage.