public class BcTlsRawKeyCertificate extends java.lang.Object implements TlsCertificate
Modifier and Type | Field and Description |
---|---|
protected BcTlsCrypto |
crypto |
protected org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
keyInfo |
protected org.bouncycastle.crypto.params.DHPublicKeyParameters |
pubKeyDH |
protected org.bouncycastle.crypto.params.ECPublicKeyParameters |
pubKeyEC |
protected org.bouncycastle.crypto.params.Ed25519PublicKeyParameters |
pubKeyEd25519 |
protected org.bouncycastle.crypto.params.Ed448PublicKeyParameters |
pubKeyEd448 |
protected org.bouncycastle.crypto.params.RSAKeyParameters |
pubKeyRSA |
Constructor and Description |
---|
BcTlsRawKeyCertificate(BcTlsCrypto crypto,
byte[] keyInfo) |
BcTlsRawKeyCertificate(BcTlsCrypto crypto,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo) |
Modifier and Type | Method and Description |
---|---|
TlsCertificate |
checkUsageInRole(int tlsCertificateRole) |
TlsEncryptor |
createEncryptor(int tlsCertificateRole)
Return an encryptor based on the public key in this certificate.
|
Tls13Verifier |
createVerifier(int signatureScheme) |
TlsVerifier |
createVerifier(short signatureAlgorithm) |
byte[] |
getEncoded() |
byte[] |
getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) |
short |
getLegacySignatureAlgorithm() |
org.bouncycastle.crypto.params.DHPublicKeyParameters |
getPubKeyDH() |
org.bouncycastle.crypto.params.DSAPublicKeyParameters |
getPubKeyDSS() |
org.bouncycastle.crypto.params.ECPublicKeyParameters |
getPubKeyEC() |
org.bouncycastle.crypto.params.Ed25519PublicKeyParameters |
getPubKeyEd25519() |
org.bouncycastle.crypto.params.Ed448PublicKeyParameters |
getPubKeyEd448() |
org.bouncycastle.pqc.crypto.mldsa.MLDSAPublicKeyParameters |
getPubKeyMLDSA() |
org.bouncycastle.crypto.params.RSAKeyParameters |
getPubKeyRSA() |
protected org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getPublicKey() |
java.math.BigInteger |
getSerialNumber() |
java.lang.String |
getSigAlgOID() |
org.bouncycastle.asn1.ASN1Encodable |
getSigAlgParams() |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
getSubjectPublicKeyInfo() |
protected boolean |
supportsKeyUsage(int keyUsageBit) |
protected boolean |
supportsMLDSA(org.bouncycastle.asn1.ASN1ObjectIdentifier mlDsaAlgOid) |
protected boolean |
supportsRSA_PKCS1() |
protected boolean |
supportsRSA_PSS_PSS(short signatureAlgorithm) |
protected boolean |
supportsRSA_PSS_RSAE() |
boolean |
supportsSignatureAlgorithm(short signatureAlgorithm) |
protected boolean |
supportsSignatureAlgorithm(short signatureAlgorithm,
int keyUsage) |
boolean |
supportsSignatureAlgorithmCA(short signatureAlgorithm) |
void |
validateKeyUsage(int keyUsageBit) |
protected void |
validateMLDSA(org.bouncycastle.asn1.ASN1ObjectIdentifier mlDsaAlgOid) |
protected void |
validateRSA_PKCS1() |
protected void |
validateRSA_PSS_PSS(short signatureAlgorithm) |
protected void |
validateRSA_PSS_RSAE() |
protected final BcTlsCrypto crypto
protected final org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo
protected org.bouncycastle.crypto.params.DHPublicKeyParameters pubKeyDH
protected org.bouncycastle.crypto.params.ECPublicKeyParameters pubKeyEC
protected org.bouncycastle.crypto.params.Ed25519PublicKeyParameters pubKeyEd25519
protected org.bouncycastle.crypto.params.Ed448PublicKeyParameters pubKeyEd448
protected org.bouncycastle.crypto.params.RSAKeyParameters pubKeyRSA
public BcTlsRawKeyCertificate(BcTlsCrypto crypto, byte[] keyInfo)
public BcTlsRawKeyCertificate(BcTlsCrypto crypto, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo)
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public TlsEncryptor createEncryptor(int tlsCertificateRole) throws java.io.IOException
TlsCertificate
createEncryptor
in interface TlsCertificate
tlsCertificateRole
- TlsCertificateRole
java.io.IOException
public TlsVerifier createVerifier(short signatureAlgorithm) throws java.io.IOException
createVerifier
in interface TlsCertificate
signatureAlgorithm
- SignatureAlgorithm
java.io.IOException
public Tls13Verifier createVerifier(int signatureScheme) throws java.io.IOException
createVerifier
in interface TlsCertificate
signatureScheme
- SignatureScheme
java.io.IOException
public byte[] getEncoded() throws java.io.IOException
getEncoded
in interface TlsCertificate
java.io.IOException
public byte[] getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier extensionOID) throws java.io.IOException
getExtension
in interface TlsCertificate
java.io.IOException
public java.math.BigInteger getSerialNumber()
getSerialNumber
in interface TlsCertificate
public java.lang.String getSigAlgOID()
getSigAlgOID
in interface TlsCertificate
public org.bouncycastle.asn1.ASN1Encodable getSigAlgParams()
getSigAlgParams
in interface TlsCertificate
public short getLegacySignatureAlgorithm() throws java.io.IOException
getLegacySignatureAlgorithm
in interface TlsCertificate
SignatureAlgorithm
java.io.IOException
public 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.Ed25519PublicKeyParameters getPubKeyEd25519() throws java.io.IOException
java.io.IOException
public org.bouncycastle.crypto.params.Ed448PublicKeyParameters getPubKeyEd448() throws java.io.IOException
java.io.IOException
public org.bouncycastle.pqc.crypto.mldsa.MLDSAPublicKeyParameters getPubKeyMLDSA() throws java.io.IOException
java.io.IOException
public org.bouncycastle.crypto.params.RSAKeyParameters getPubKeyRSA() throws java.io.IOException
java.io.IOException
public boolean supportsSignatureAlgorithm(short signatureAlgorithm) throws java.io.IOException
supportsSignatureAlgorithm
in interface TlsCertificate
signatureAlgorithm
- SignatureAlgorithm
java.io.IOException
public boolean supportsSignatureAlgorithmCA(short signatureAlgorithm) throws java.io.IOException
supportsSignatureAlgorithmCA
in interface TlsCertificate
java.io.IOException
public TlsCertificate checkUsageInRole(int tlsCertificateRole) throws java.io.IOException
checkUsageInRole
in interface TlsCertificate
tlsCertificateRole
- TlsCertificateRole
java.io.IOException
protected org.bouncycastle.crypto.params.AsymmetricKeyParameter getPublicKey() throws java.io.IOException
java.io.IOException
protected boolean supportsKeyUsage(int keyUsageBit)
protected boolean supportsMLDSA(org.bouncycastle.asn1.ASN1ObjectIdentifier mlDsaAlgOid)
protected boolean supportsRSA_PKCS1()
protected boolean supportsRSA_PSS_PSS(short signatureAlgorithm)
protected boolean supportsRSA_PSS_RSAE()
protected boolean supportsSignatureAlgorithm(short signatureAlgorithm, int keyUsage) throws java.io.IOException
java.io.IOException
public void validateKeyUsage(int keyUsageBit) throws java.io.IOException
java.io.IOException
protected void validateMLDSA(org.bouncycastle.asn1.ASN1ObjectIdentifier mlDsaAlgOid) throws java.io.IOException
java.io.IOException
protected void validateRSA_PKCS1() throws java.io.IOException
java.io.IOException
protected void validateRSA_PSS_PSS(short signatureAlgorithm) throws java.io.IOException
java.io.IOException
protected void validateRSA_PSS_RSAE() throws java.io.IOException
java.io.IOException