public class BcTlsCertificate extends java.lang.Object implements TlsCertificate
Modifier and Type | Field and Description |
---|---|
protected org.bouncycastle.asn1.x509.Certificate |
certificate |
protected org.bouncycastle.crypto.params.DHPublicKeyParameters |
pubKeyDH |
protected org.bouncycastle.crypto.params.ECPublicKeyParameters |
pubKeyEC |
protected org.bouncycastle.crypto.params.RSAKeyParameters |
pubKeyRSA |
Constructor and Description |
---|
BcTlsCertificate(BcTlsCrypto crypto,
byte[] encoding) |
Modifier and Type | Method and Description |
---|---|
static BcTlsCertificate |
convert(BcTlsCrypto crypto,
TlsCertificate certificate) |
TlsVerifier |
createVerifier(short signatureAlgorithm) |
short |
getClientCertificateType() |
byte[] |
getEncoded() |
protected org.bouncycastle.crypto.params.DHPublicKeyParameters |
getPubKeyDH() |
org.bouncycastle.crypto.params.DSAPublicKeyParameters |
getPubKeyDSS() |
org.bouncycastle.crypto.params.ECPublicKeyParameters |
getPubKeyEC() |
org.bouncycastle.crypto.params.RSAKeyParameters |
getPubKeyRSA() |
protected org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getPublicKey() |
TlsCertificate |
useInRole(int connectionEnd,
int keyExchangeAlgorithm) |
protected void |
validateKeyUsage(int keyUsageBits) |
protected org.bouncycastle.crypto.params.DHPublicKeyParameters |
validatePubKeyDH(org.bouncycastle.crypto.params.DHPublicKeyParameters pubKeyDH) |
protected org.bouncycastle.crypto.params.DSAPublicKeyParameters |
validatePubKeyDSS(org.bouncycastle.crypto.params.DSAPublicKeyParameters pubKeyDSS) |
protected org.bouncycastle.crypto.params.ECPublicKeyParameters |
validatePubKeyEC(org.bouncycastle.crypto.params.ECPublicKeyParameters pubKeyEC) |
protected org.bouncycastle.crypto.params.RSAKeyParameters |
validatePubKeyRSA(org.bouncycastle.crypto.params.RSAKeyParameters pubKeyRSA) |
protected final org.bouncycastle.asn1.x509.Certificate certificate
protected org.bouncycastle.crypto.params.DHPublicKeyParameters pubKeyDH
protected org.bouncycastle.crypto.params.ECPublicKeyParameters pubKeyEC
protected org.bouncycastle.crypto.params.RSAKeyParameters pubKeyRSA
public BcTlsCertificate(BcTlsCrypto crypto, byte[] encoding) throws java.io.IOException
java.io.IOException
public static BcTlsCertificate convert(BcTlsCrypto crypto, TlsCertificate certificate) throws java.io.IOException
java.io.IOException
public TlsVerifier createVerifier(short signatureAlgorithm) throws java.io.IOException
createVerifier
in interface TlsCertificate
signatureAlgorithm
- SignatureAlgorithm
java.io.IOException
public short getClientCertificateType() throws java.io.IOException
getClientCertificateType
in interface TlsCertificate
ClientCertificateType
java.io.IOException
public byte[] getEncoded() throws java.io.IOException
getEncoded
in interface TlsCertificate
java.io.IOException
protected org.bouncycastle.crypto.params.DHPublicKeyParameters getPubKeyDH() throws java.io.IOException
java.io.IOException
public org.bouncycastle.crypto.params.DSAPublicKeyParameters getPubKeyDSS() throws java.io.IOException
java.io.IOException
public org.bouncycastle.crypto.params.ECPublicKeyParameters getPubKeyEC() throws java.io.IOException
java.io.IOException
public org.bouncycastle.crypto.params.RSAKeyParameters getPubKeyRSA() throws java.io.IOException
java.io.IOException
public TlsCertificate useInRole(int connectionEnd, int keyExchangeAlgorithm) throws java.io.IOException
useInRole
in interface TlsCertificate
connectionEnd
- ConnectionEnd
keyExchangeAlgorithm
- KeyExchangeAlgorithm
java.io.IOException
protected org.bouncycastle.crypto.params.AsymmetricKeyParameter getPublicKey() throws java.io.IOException
java.io.IOException
protected void validateKeyUsage(int keyUsageBits) throws java.io.IOException
java.io.IOException
protected org.bouncycastle.crypto.params.DHPublicKeyParameters validatePubKeyDH(org.bouncycastle.crypto.params.DHPublicKeyParameters pubKeyDH) throws java.io.IOException
java.io.IOException
protected org.bouncycastle.crypto.params.DSAPublicKeyParameters validatePubKeyDSS(org.bouncycastle.crypto.params.DSAPublicKeyParameters pubKeyDSS) throws java.io.IOException
java.io.IOException
protected org.bouncycastle.crypto.params.ECPublicKeyParameters validatePubKeyEC(org.bouncycastle.crypto.params.ECPublicKeyParameters pubKeyEC) throws java.io.IOException
java.io.IOException
protected org.bouncycastle.crypto.params.RSAKeyParameters validatePubKeyRSA(org.bouncycastle.crypto.params.RSAKeyParameters pubKeyRSA) throws java.io.IOException
java.io.IOException