Class JcaTlsRawKeyCertificate

java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRawKeyCertificate
All Implemented Interfaces:
TlsCertificate
Direct Known Subclasses:
JcaTlsCertificate

public class JcaTlsRawKeyCertificate extends Object implements TlsCertificate
Implementation class for a raw public key (RFC 7250) based on the JCA. The certificate is just a DER-encoded SubjectPublicKeyInfo, with no X.509 metadata: it has no serial number, signature algorithm, extensions or KeyUsage, so all signature/encryption uses are permitted by the key itself.

This is the base class for JcaTlsCertificate (an X.509 certificate is a SubjectPublicKeyInfo plus X.509 metadata); subclasses override getPublicKey(), getSubjectPublicKeyInfo(), supportsKeyUsageBit(int) and the X.509 accessors (getEncoded(), getExtension(ASN1ObjectIdentifier), getSerialNumber(), getSigAlgOID(), getSigAlgParams()) to source them from the certificate. This mirrors the lightweight BcTlsCertificate extends BcTlsRawKeyCertificate structure.