Class RelatedCertificateDescriptor

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.RelatedCertificateDescriptor
All Implemented Interfaces:
ASN1Encodable, Encodable

public class RelatedCertificateDescriptor extends ASN1Object
Descriptor for a related certificate, as defined by draft-ietf-lamps-certdiscovery-04 (A Mechanism for X.509 Certificate Discovery). Carried as the value of an OtherName (type-id BCObjectIdentifiers.id_on_relatedCertificateDescriptor) inside the accessLocation GeneralName of an AccessDescription whose accessMethod is BCObjectIdentifiers.id_ad_certDiscovery, sitting in turn inside the SubjectInfoAccess extension (Extension.subjectInfoAccess).
    RelatedCertificateDescriptor ::= SEQUENCE {
        method               CertDiscoveryMethod,
        signatureAlgorithm   [0] AlgorithmIdentifier{SIGNATURE-ALGORITHM, {...}} OPTIONAL,
        publicKeyAlgorithm   [1] AlgorithmIdentifier{PUBLIC-KEY, {...}} OPTIONAL,
        certHash             [2] RelatedCertificate OPTIONAL
    }
The module is defined with EXPLICIT TAGS, so the three optional fields are explicitly tagged. certHash is the RFC 9763 RelatedCertificate structure, a hash over the entire Referenced Certificate. The draft requires that none of the optional fields is present when the method is byInclusion; this class carries what it is given and leaves that rule to the caller.