public class RelatedCertificateDescriptor extends ASN1Object
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.| Constructor and Description |
|---|
RelatedCertificateDescriptor(CertDiscoveryMethod method) |
RelatedCertificateDescriptor(CertDiscoveryMethod method,
AlgorithmIdentifier signatureAlgorithm,
AlgorithmIdentifier publicKeyAlgorithm,
RelatedCertificate certHash) |
| Modifier and Type | Method and Description |
|---|---|
static RelatedCertificateDescriptor[] |
fromExtensions(Extensions extensions)
Walk the SubjectInfoAccess extension of the supplied
Extensions
and return every RelatedCertificateDescriptor it carries (each
AccessDescription whose accessMethod is
BCObjectIdentifiers.id_ad_certDiscovery and whose accessLocation
is an OtherName of type
BCObjectIdentifiers.id_on_relatedCertificateDescriptor). |
RelatedCertificate |
getCertHash()
Return the RFC 9763 hash of the Referenced Certificate, or
null
if absent. |
static RelatedCertificateDescriptor |
getInstance(java.lang.Object obj) |
CertDiscoveryMethod |
getMethod() |
AlgorithmIdentifier |
getPublicKeyAlgorithm() |
AlgorithmIdentifier |
getSignatureAlgorithm() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCodepublic RelatedCertificateDescriptor(CertDiscoveryMethod method, AlgorithmIdentifier signatureAlgorithm, AlgorithmIdentifier publicKeyAlgorithm, RelatedCertificate certHash)
public RelatedCertificateDescriptor(CertDiscoveryMethod method)
public static RelatedCertificateDescriptor getInstance(java.lang.Object obj)
public static RelatedCertificateDescriptor[] fromExtensions(Extensions extensions)
Extensions
and return every RelatedCertificateDescriptor it carries (each
AccessDescription whose accessMethod is
BCObjectIdentifiers.id_ad_certDiscovery and whose accessLocation
is an OtherName of type
BCObjectIdentifiers.id_on_relatedCertificateDescriptor).null; empty when the extension is
absent or carries no certificate-discovery descriptors.public CertDiscoveryMethod getMethod()
public AlgorithmIdentifier getSignatureAlgorithm()
public AlgorithmIdentifier getPublicKeyAlgorithm()
public RelatedCertificate getCertHash()
null
if absent.public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object