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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TlsVerifier
createVerifier(short signatureAlgorithm)
byte[]
getEncoded()
byte[]
getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID)
short
getLegacySignatureAlgorithm()
java.math.BigInteger
getSerialNumber()
java.lang.String
getSigAlgOID()
boolean
supportsSignatureAlgorithm(short signatureAlgorithm)
TlsCertificate
useInRole(int connectionEnd, int keyExchangeAlgorithm)
-
-
-
Method Detail
-
createVerifier
TlsVerifier createVerifier(short signatureAlgorithm) throws java.io.IOException
- Parameters:
signatureAlgorithm
-SignatureAlgorithm
- Throws:
java.io.IOException
-
getEncoded
byte[] getEncoded() throws java.io.IOException
- Throws:
java.io.IOException
-
getExtension
byte[] getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) throws java.io.IOException
- Throws:
java.io.IOException
-
getSerialNumber
java.math.BigInteger getSerialNumber()
-
getSigAlgOID
java.lang.String getSigAlgOID()
- Returns:
- the OID of this certificate's 'signatureAlgorithm', as a String.
-
getLegacySignatureAlgorithm
short getLegacySignatureAlgorithm() throws java.io.IOException
- Returns:
SignatureAlgorithm
- Throws:
java.io.IOException
-
supportsSignatureAlgorithm
boolean supportsSignatureAlgorithm(short signatureAlgorithm) throws java.io.IOException
- Parameters:
signatureAlgorithm
-SignatureAlgorithm
- Returns:
- true if (and only if) this certificate can be used to verify the given signature algorithm.
- Throws:
java.io.IOException
-
useInRole
TlsCertificate useInRole(int connectionEnd, int keyExchangeAlgorithm) throws java.io.IOException
- Parameters:
connectionEnd
-ConnectionEnd
keyExchangeAlgorithm
-KeyExchangeAlgorithm
- Throws:
java.io.IOException
-
-