public class JcaTlsCertificate extends java.lang.Object implements TlsCertificate
Modifier and Type | Field and Description |
---|---|
protected java.security.cert.X509Certificate |
certificate |
protected javax.crypto.interfaces.DHPublicKey |
pubKeyDH |
protected java.security.interfaces.ECPublicKey |
pubKeyEC |
protected java.security.interfaces.RSAPublicKey |
pubKeyRSA |
Constructor and Description |
---|
JcaTlsCertificate(byte[] encoding,
org.bouncycastle.jcajce.util.JcaJceHelper helper) |
Modifier and Type | Method and Description |
---|---|
static JcaTlsCertificate |
convert(TlsCertificate certificate,
org.bouncycastle.jcajce.util.JcaJceHelper helper) |
TlsVerifier |
createVerifier(short signatureAlgorithm) |
short |
getClientCertificateType() |
byte[] |
getEncoded() |
protected java.security.PublicKey |
getPublicKey() |
java.security.cert.X509Certificate |
getX509Certificate() |
TlsCertificate |
useInRole(int connectionEnd,
int keyExchangeAlgorithm) |
protected void |
validateKeyUsage(int keyUsageBits) |
protected javax.crypto.interfaces.DHPublicKey |
validatePubKeyDH(javax.crypto.interfaces.DHPublicKey pubKeyDH) |
protected java.security.interfaces.DSAPublicKey |
validatePubKeyDSS(java.security.interfaces.DSAPublicKey pubKeyDSS) |
protected java.security.interfaces.ECPublicKey |
validatePubKeyEC(java.security.interfaces.ECPublicKey pubKeyEC) |
protected java.security.interfaces.RSAPublicKey |
validatePubKeyRSA(java.security.interfaces.RSAPublicKey pubKeyRSA) |
protected final java.security.cert.X509Certificate certificate
protected javax.crypto.interfaces.DHPublicKey pubKeyDH
protected java.security.interfaces.ECPublicKey pubKeyEC
protected java.security.interfaces.RSAPublicKey pubKeyRSA
public JcaTlsCertificate(byte[] encoding, org.bouncycastle.jcajce.util.JcaJceHelper helper) throws java.io.IOException
java.io.IOException
public static JcaTlsCertificate convert(TlsCertificate certificate, org.bouncycastle.jcajce.util.JcaJceHelper helper) 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
public TlsCertificate useInRole(int connectionEnd, int keyExchangeAlgorithm) throws java.io.IOException
useInRole
in interface TlsCertificate
connectionEnd
- ConnectionEnd
keyExchangeAlgorithm
- KeyExchangeAlgorithm
java.io.IOException
protected java.security.PublicKey getPublicKey() throws java.io.IOException
java.io.IOException
public java.security.cert.X509Certificate getX509Certificate()
protected void validateKeyUsage(int keyUsageBits) throws java.io.IOException
java.io.IOException
protected javax.crypto.interfaces.DHPublicKey validatePubKeyDH(javax.crypto.interfaces.DHPublicKey pubKeyDH) throws java.io.IOException
java.io.IOException
protected java.security.interfaces.DSAPublicKey validatePubKeyDSS(java.security.interfaces.DSAPublicKey pubKeyDSS) throws java.io.IOException
java.io.IOException
protected java.security.interfaces.ECPublicKey validatePubKeyEC(java.security.interfaces.ECPublicKey pubKeyEC) throws java.io.IOException
java.io.IOException
protected java.security.interfaces.RSAPublicKey validatePubKeyRSA(java.security.interfaces.RSAPublicKey pubKeyRSA) throws java.io.IOException
java.io.IOException