Package org.bouncycastle.tls.crypto
Interface TlsCertificate
- All Known Implementing Classes:
BcTlsCertificate,BcTlsRawKeyCertificate,JcaTlsCertificate
public interface TlsCertificate
Interface providing the functional representation of a single X.509 certificate.
-
Method Summary
Modifier and TypeMethodDescriptioncheckUsageInRole(int tlsCertificateRole) createEncryptor(int tlsCertificateRole) Return an encryptor based on the public key in this certificate.createVerifier(int signatureScheme) createVerifier(short signatureAlgorithm) byte[]byte[]getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) shortorg.bouncycastle.asn1.ASN1EncodablebooleansupportsSignatureAlgorithm(short signatureAlgorithm) booleansupportsSignatureAlgorithmCA(short signatureAlgorithm)
-
Method Details
-
createEncryptor
Return an encryptor based on the public key in this certificate.- Parameters:
tlsCertificateRole-TlsCertificateRole- Returns:
- a TlsEncryptor based on this certificate's public key.
- Throws:
IOException
-
createVerifier
- Parameters:
signatureAlgorithm-SignatureAlgorithm- Throws:
IOException
-
createVerifier
- Parameters:
signatureScheme-SignatureScheme- 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
-
checkUsageInRole
- Parameters:
tlsCertificateRole-TlsCertificateRole- Throws:
IOException
-