public class BcTlsCertificate extends BcTlsRawKeyCertificate
Modifier and Type | Field and Description |
---|---|
protected org.bouncycastle.asn1.x509.Certificate |
certificate |
crypto, keyInfo, pubKeyDH, pubKeyEC, pubKeyEd25519, pubKeyEd448, pubKeyRSA
Constructor and Description |
---|
BcTlsCertificate(BcTlsCrypto crypto,
byte[] encoding) |
BcTlsCertificate(BcTlsCrypto crypto,
org.bouncycastle.asn1.x509.Certificate certificate) |
Modifier and Type | Method and Description |
---|---|
static BcTlsCertificate |
convert(BcTlsCrypto crypto,
TlsCertificate certificate) |
org.bouncycastle.asn1.x509.Certificate |
getCertificate() |
byte[] |
getEncoded() |
byte[] |
getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) |
java.math.BigInteger |
getSerialNumber() |
java.lang.String |
getSigAlgOID() |
org.bouncycastle.asn1.ASN1Encodable |
getSigAlgParams() |
static org.bouncycastle.asn1.x509.Certificate |
parseCertificate(byte[] encoding) |
protected boolean |
supportsKeyUsage(int keyUsageBit) |
checkUsageInRole, createEncryptor, createVerifier, createVerifier, getLegacySignatureAlgorithm, getPubKeyDH, getPubKeyDSS, getPubKeyEC, getPubKeyEd25519, getPubKeyEd448, getPubKeyMLDSA, getPubKeyRSA, getPublicKey, getSubjectPublicKeyInfo, supportsMLDSA, supportsRSA_PKCS1, supportsRSA_PSS_PSS, supportsRSA_PSS_RSAE, supportsSignatureAlgorithm, supportsSignatureAlgorithm, supportsSignatureAlgorithmCA, validateKeyUsage, validateMLDSA, validateRSA_PKCS1, validateRSA_PSS_PSS, validateRSA_PSS_RSAE
public BcTlsCertificate(BcTlsCrypto crypto, byte[] encoding) throws java.io.IOException
java.io.IOException
public BcTlsCertificate(BcTlsCrypto crypto, org.bouncycastle.asn1.x509.Certificate certificate)
public static BcTlsCertificate convert(BcTlsCrypto crypto, TlsCertificate certificate) throws java.io.IOException
java.io.IOException
public static org.bouncycastle.asn1.x509.Certificate parseCertificate(byte[] encoding) throws java.io.IOException
java.io.IOException
public org.bouncycastle.asn1.x509.Certificate getCertificate()
public byte[] getEncoded() throws java.io.IOException
getEncoded
in interface TlsCertificate
getEncoded
in class BcTlsRawKeyCertificate
java.io.IOException
public byte[] getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) throws java.io.IOException
getExtension
in interface TlsCertificate
getExtension
in class BcTlsRawKeyCertificate
java.io.IOException
public java.math.BigInteger getSerialNumber()
getSerialNumber
in interface TlsCertificate
getSerialNumber
in class BcTlsRawKeyCertificate
public java.lang.String getSigAlgOID()
getSigAlgOID
in interface TlsCertificate
getSigAlgOID
in class BcTlsRawKeyCertificate
public org.bouncycastle.asn1.ASN1Encodable getSigAlgParams()
getSigAlgParams
in interface TlsCertificate
getSigAlgParams
in class BcTlsRawKeyCertificate
protected boolean supportsKeyUsage(int keyUsageBit)
supportsKeyUsage
in class BcTlsRawKeyCertificate