Package org.bouncycastle.tls.crypto
Interface TlsCertificate
- All Known Implementing Classes:
BcTlsCertificate,JcaTlsCertificate
public interface TlsCertificate
Interface providing the functional representation of a single X.509 certificate.
-
Method Summary
Modifier and TypeMethodDescriptioncreateVerifier(short signatureAlgorithm) byte[]byte[]getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) shortorg.bouncycastle.asn1.ASN1EncodablebooleansupportsSignatureAlgorithm(short signatureAlgorithm) booleansupportsSignatureAlgorithmCA(short signatureAlgorithm) useInRole(int connectionEnd, int keyExchangeAlgorithm)
-
Method Details
-
createVerifier
- Parameters:
signatureAlgorithm-SignatureAlgorithm- Throws:
IOException
-
getEncoded
- Throws:
IOException
-
getExtension
- Throws:
IOException
-
getSerialNumber
BigInteger getSerialNumber() -
getSigAlgOID
String getSigAlgOID()- Returns:
- the OID of this certificate's 'signatureAlgorithm', as a String.
-
getSigAlgParams
- Throws:
IOException
-
getLegacySignatureAlgorithm
- Returns:
SignatureAlgorithm- Throws:
IOException
-
supportsSignatureAlgorithm
- Parameters:
signatureAlgorithm-SignatureAlgorithm- Returns:
- true if (and only if) this certificate can be used to verify the given signature algorithm.
- Throws:
IOException
-
supportsSignatureAlgorithmCA
- Throws:
IOException
-
useInRole
- Parameters:
connectionEnd-ConnectionEndkeyExchangeAlgorithm-KeyExchangeAlgorithm- Throws:
IOException
-