Package org.bouncycastle.asn1.x509
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 (Certificate Discovery in PKIX). Carried as the value of anOtherName(type-idBCObjectIdentifiers.id_on_relatedCertificateDescriptor) inside theaccessLocationGeneralName of anAccessDescriptionwhoseaccessMethodisBCObjectIdentifiers.id_ad_certDiscovery, sitting in turn inside the SubjectInfoAccess extension (Extension.subjectInfoAccess).RelatedCertificateDescriptor ::= SEQUENCE { method CertDiscoveryMethod, intent DiscoveryIntentId OPTIONAL, signatureAlgorithm [0] IMPLICIT AlgorithmIdentifier OPTIONAL, publicKeyAlgorithm [1] IMPLICIT AlgorithmIdentifier OPTIONAL } DiscoveryIntentId ::= OBJECT IDENTIFIERIntent OIDs are defined underBCObjectIdentifiers.id_rcd(placeholder arc pending IANA assignment):BCObjectIdentifiers.id_rcd_agility,BCObjectIdentifiers.id_rcd_redundancy,BCObjectIdentifiers.id_rcd_dual,BCObjectIdentifiers.id_rcd_priv_key_stmt,BCObjectIdentifiers.id_rcd_self.
-
-
Constructor Summary
Constructors Constructor Description RelatedCertificateDescriptor(CertDiscoveryMethod method)RelatedCertificateDescriptor(CertDiscoveryMethod method, ASN1ObjectIdentifier intent, AlgorithmIdentifier signatureAlgorithm, AlgorithmIdentifier publicKeyAlgorithm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelatedCertificateDescriptor[]fromExtensions(Extensions extensions)Walk the SubjectInfoAccess extension of the suppliedExtensionsand return everyRelatedCertificateDescriptorit carries (each AccessDescription whose accessMethod isBCObjectIdentifiers.id_ad_certDiscoveryand whose accessLocation is an OtherName of typeBCObjectIdentifiers.id_on_relatedCertificateDescriptor).static RelatedCertificateDescriptorgetInstance(java.lang.Object obj)ASN1ObjectIdentifiergetIntent()CertDiscoveryMethodgetMethod()AlgorithmIdentifiergetPublicKeyAlgorithm()AlgorithmIdentifiergetSignatureAlgorithm()ASN1PrimitivetoASN1Primitive()Method providing a primitive representation of this object suitable for encoding.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Constructor Detail
-
RelatedCertificateDescriptor
public RelatedCertificateDescriptor(CertDiscoveryMethod method, ASN1ObjectIdentifier intent, AlgorithmIdentifier signatureAlgorithm, AlgorithmIdentifier publicKeyAlgorithm)
-
RelatedCertificateDescriptor
public RelatedCertificateDescriptor(CertDiscoveryMethod method)
-
-
Method Detail
-
getInstance
public static RelatedCertificateDescriptor getInstance(java.lang.Object obj)
-
fromExtensions
public static RelatedCertificateDescriptor[] fromExtensions(Extensions extensions)
Walk the SubjectInfoAccess extension of the suppliedExtensionsand return everyRelatedCertificateDescriptorit carries (each AccessDescription whose accessMethod isBCObjectIdentifiers.id_ad_certDiscoveryand whose accessLocation is an OtherName of typeBCObjectIdentifiers.id_on_relatedCertificateDescriptor).- Returns:
- an array, never
null; empty when the extension is absent or carries no certificate-discovery descriptors.
-
getMethod
public CertDiscoveryMethod getMethod()
-
getIntent
public ASN1ObjectIdentifier getIntent()
-
getSignatureAlgorithm
public AlgorithmIdentifier getSignatureAlgorithm()
-
getPublicKeyAlgorithm
public AlgorithmIdentifier getPublicKeyAlgorithm()
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
-