public class BcTlsCertificate extends java.lang.Object implements TlsCertificate
| Modifier and Type | Field and Description |
|---|---|
protected org.spongycastle.asn1.x509.Certificate |
certificate |
protected BcTlsCrypto |
crypto |
protected org.spongycastle.crypto.params.DHPublicKeyParameters |
pubKeyDH |
protected org.spongycastle.crypto.params.ECPublicKeyParameters |
pubKeyEC |
protected org.spongycastle.crypto.params.RSAKeyParameters |
pubKeyRSA |
| Constructor and Description |
|---|
BcTlsCertificate(BcTlsCrypto crypto,
byte[] encoding) |
BcTlsCertificate(BcTlsCrypto crypto,
org.spongycastle.asn1.x509.Certificate certificate) |
| Modifier and Type | Method and Description |
|---|---|
static BcTlsCertificate |
convert(BcTlsCrypto crypto,
TlsCertificate certificate) |
TlsVerifier |
createVerifier(short signatureAlgorithm) |
short |
getClientCertificateType() |
byte[] |
getEncoded() |
byte[] |
getExtension(org.spongycastle.asn1.ASN1ObjectIdentifier extensionOID) |
protected org.spongycastle.crypto.params.DHPublicKeyParameters |
getPubKeyDH() |
org.spongycastle.crypto.params.DSAPublicKeyParameters |
getPubKeyDSS() |
org.spongycastle.crypto.params.ECPublicKeyParameters |
getPubKeyEC() |
org.spongycastle.crypto.params.RSAKeyParameters |
getPubKeyRSA() |
protected org.spongycastle.crypto.params.AsymmetricKeyParameter |
getPublicKey() |
java.math.BigInteger |
getSerialNumber() |
static org.spongycastle.asn1.x509.Certificate |
parseCertificate(byte[] encoding) |
TlsCertificate |
useInRole(int connectionEnd,
int keyExchangeAlgorithm) |
protected void |
validateKeyUsage(int keyUsageBits) |
protected org.spongycastle.crypto.params.DSAPublicKeyParameters |
validatePubKeyDSS(org.spongycastle.crypto.params.DSAPublicKeyParameters pubKeyDSS) |
protected org.spongycastle.crypto.params.ECPublicKeyParameters |
validatePubKeyEC(org.spongycastle.crypto.params.ECPublicKeyParameters pubKeyEC) |
protected org.spongycastle.crypto.params.RSAKeyParameters |
validatePubKeyRSA(org.spongycastle.crypto.params.RSAKeyParameters pubKeyRSA) |
protected final BcTlsCrypto crypto
protected final org.spongycastle.asn1.x509.Certificate certificate
protected org.spongycastle.crypto.params.DHPublicKeyParameters pubKeyDH
protected org.spongycastle.crypto.params.ECPublicKeyParameters pubKeyEC
protected org.spongycastle.crypto.params.RSAKeyParameters pubKeyRSA
public BcTlsCertificate(BcTlsCrypto crypto, byte[] encoding) throws java.io.IOException
java.io.IOExceptionpublic BcTlsCertificate(BcTlsCrypto crypto, org.spongycastle.asn1.x509.Certificate certificate)
public static BcTlsCertificate convert(BcTlsCrypto crypto, TlsCertificate certificate) throws java.io.IOException
java.io.IOExceptionpublic static org.spongycastle.asn1.x509.Certificate parseCertificate(byte[] encoding)
throws java.io.IOException
java.io.IOExceptionpublic TlsVerifier createVerifier(short signatureAlgorithm) throws java.io.IOException
createVerifier in interface TlsCertificatesignatureAlgorithm - SignatureAlgorithmjava.io.IOExceptionpublic short getClientCertificateType()
throws java.io.IOException
getClientCertificateType in interface TlsCertificateClientCertificateTypejava.io.IOExceptionpublic byte[] getEncoded()
throws java.io.IOException
getEncoded in interface TlsCertificatejava.io.IOExceptionpublic byte[] getExtension(org.spongycastle.asn1.ASN1ObjectIdentifier extensionOID)
throws java.io.IOException
getExtension in interface TlsCertificatejava.io.IOExceptionpublic java.math.BigInteger getSerialNumber()
getSerialNumber in interface TlsCertificateprotected org.spongycastle.crypto.params.DHPublicKeyParameters getPubKeyDH()
throws java.io.IOException
java.io.IOExceptionpublic org.spongycastle.crypto.params.DSAPublicKeyParameters getPubKeyDSS()
throws java.io.IOException
java.io.IOExceptionpublic org.spongycastle.crypto.params.ECPublicKeyParameters getPubKeyEC()
throws java.io.IOException
java.io.IOExceptionpublic org.spongycastle.crypto.params.RSAKeyParameters getPubKeyRSA()
throws java.io.IOException
java.io.IOExceptionpublic TlsCertificate useInRole(int connectionEnd, int keyExchangeAlgorithm) throws java.io.IOException
useInRole in interface TlsCertificateconnectionEnd - ConnectionEndkeyExchangeAlgorithm - KeyExchangeAlgorithmjava.io.IOExceptionprotected org.spongycastle.crypto.params.AsymmetricKeyParameter getPublicKey()
throws java.io.IOException
java.io.IOExceptionprotected void validateKeyUsage(int keyUsageBits)
throws java.io.IOException
java.io.IOExceptionprotected org.spongycastle.crypto.params.DSAPublicKeyParameters validatePubKeyDSS(org.spongycastle.crypto.params.DSAPublicKeyParameters pubKeyDSS)
throws java.io.IOException
java.io.IOExceptionprotected org.spongycastle.crypto.params.ECPublicKeyParameters validatePubKeyEC(org.spongycastle.crypto.params.ECPublicKeyParameters pubKeyEC)
throws java.io.IOException
java.io.IOExceptionprotected org.spongycastle.crypto.params.RSAKeyParameters validatePubKeyRSA(org.spongycastle.crypto.params.RSAKeyParameters pubKeyRSA)
throws java.io.IOException
java.io.IOException