Class BcTlsCertificate
java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate
org.bouncycastle.tls.crypto.impl.bc.BcTlsCertificate
- All Implemented Interfaces:
TlsCertificate
Implementation class for a single X.509 certificate based on the BC light-weight API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bouncycastle.asn1.x509.CertificateFields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate
crypto, keyInfo, pubKeyDH, pubKeyEC, pubKeyEd25519, pubKeyEd448, pubKeyRSA -
Constructor Summary
ConstructorsConstructorDescriptionBcTlsCertificate(BcTlsCrypto crypto, byte[] encoding) BcTlsCertificate(BcTlsCrypto crypto, org.bouncycastle.asn1.x509.Certificate certificate) -
Method Summary
Modifier and TypeMethodDescriptionstatic BcTlsCertificateconvert(BcTlsCrypto crypto, TlsCertificate certificate) org.bouncycastle.asn1.x509.Certificatebyte[]byte[]getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) org.bouncycastle.asn1.ASN1Encodablestatic org.bouncycastle.asn1.x509.CertificateparseCertificate(byte[] encoding) protected booleansupportsKeyUsage(int keyUsageBits) Methods inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsRawKeyCertificate
checkUsageInRole, createEncryptor, createVerifier, createVerifier, getLegacySignatureAlgorithm, getPubKeyDH, getPubKeyDSS, getPubKeyEC, getPubKeyEd25519, getPubKeyEd448, getPubKeyRSA, getPublicKey, getSubjectPublicKeyInfo, supportsRSA_PKCS1, supportsRSA_PSS_PSS, supportsRSA_PSS_RSAE, supportsSignatureAlgorithm, supportsSignatureAlgorithm, supportsSignatureAlgorithmCA, validateKeyUsage, validateRSA_PKCS1, validateRSA_PSS_PSS, validateRSA_PSS_RSAE
-
Field Details
-
certificate
protected final org.bouncycastle.asn1.x509.Certificate certificate
-
-
Constructor Details
-
BcTlsCertificate
- Throws:
IOException
-
BcTlsCertificate
-
-
Method Details
-
convert
public static BcTlsCertificate convert(BcTlsCrypto crypto, TlsCertificate certificate) throws IOException - Throws:
IOException
-
parseCertificate
public static org.bouncycastle.asn1.x509.Certificate parseCertificate(byte[] encoding) throws IOException - Throws:
IOException
-
getCertificate
public org.bouncycastle.asn1.x509.Certificate getCertificate() -
getEncoded
- Specified by:
getEncodedin interfaceTlsCertificate- Overrides:
getEncodedin classBcTlsRawKeyCertificate- Throws:
IOException
-
getExtension
public byte[] getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) throws IOException - Specified by:
getExtensionin interfaceTlsCertificate- Overrides:
getExtensionin classBcTlsRawKeyCertificate- Throws:
IOException
-
getSerialNumber
- Specified by:
getSerialNumberin interfaceTlsCertificate- Overrides:
getSerialNumberin classBcTlsRawKeyCertificate
-
getSigAlgOID
- Specified by:
getSigAlgOIDin interfaceTlsCertificate- Overrides:
getSigAlgOIDin classBcTlsRawKeyCertificate- Returns:
- the OID of this certificate's 'signatureAlgorithm', as a String.
-
getSigAlgParams
public org.bouncycastle.asn1.ASN1Encodable getSigAlgParams()- Specified by:
getSigAlgParamsin interfaceTlsCertificate- Overrides:
getSigAlgParamsin classBcTlsRawKeyCertificate
-
supportsKeyUsage
protected boolean supportsKeyUsage(int keyUsageBits) - Overrides:
supportsKeyUsagein classBcTlsRawKeyCertificate
-