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 TlsCertificate
checkUsageInRole(int connectionEnd, int tlsCertificateRole)
TlsVerifier
createVerifier(int signatureScheme)
TlsVerifier
createVerifier(short signatureAlgorithm)
byte[]
getEncoded()
byte[]
getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID)
short
getLegacySignatureAlgorithm()
java.math.BigInteger
getSerialNumber()
java.lang.String
getSigAlgOID()
org.bouncycastle.asn1.ASN1Encodable
getSigAlgParams()
boolean
supportsSignatureAlgorithm(short signatureAlgorithm)
boolean
supportsSignatureAlgorithmCA(short signatureAlgorithm)
-
-
-
Method Detail
-
createVerifier
TlsVerifier createVerifier(short signatureAlgorithm) throws java.io.IOException
- Parameters:
signatureAlgorithm
-SignatureAlgorithm
- Throws:
java.io.IOException
-
createVerifier
TlsVerifier createVerifier(int signatureScheme) throws java.io.IOException
- Parameters:
signatureScheme
-SignatureScheme
- 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.
-
getSigAlgParams
org.bouncycastle.asn1.ASN1Encodable getSigAlgParams() throws java.io.IOException
- Throws:
java.io.IOException
-
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
-
supportsSignatureAlgorithmCA
boolean supportsSignatureAlgorithmCA(short signatureAlgorithm) throws java.io.IOException
- Throws:
java.io.IOException
-
checkUsageInRole
TlsCertificate checkUsageInRole(int connectionEnd, int tlsCertificateRole) throws java.io.IOException
- Parameters:
connectionEnd
-ConnectionEnd
tlsCertificateRole
-TlsCertificateRole
- Throws:
java.io.IOException
-
-