Class CertDiscoveryMethod
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.CertDiscoveryMethod
- All Implemented Interfaces:
ASN1Choice, ASN1Encodable, Encodable
The method used to retrieve a related certificate, as defined by
draft-ietf-lamps-certdiscovery (Certificate Discovery in PKIX).
CertDiscoveryMethod ::= CHOICE {
byUri [0] IMPLICIT CertLocation,
byInclusion Certificate,
byLocalPolicy NULL
}
CertLocation ::= IA5String
Where byUri carries the URI from which the secondary certificate
may be downloaded, byInclusion embeds the secondary certificate
directly, and byLocalPolicy signals that the relying party is
expected to resolve the secondary certificate through local configuration.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic CertDiscoveryMethodbyInclusion(Certificate certificate) Create abyInclusiondiscovery method embedding the supplied certificate directly.static CertDiscoveryMethodCreate abyLocalPolicydiscovery method (the wire form is ASN.1 NULL; the relying party resolves the certificate through local configuration).static CertDiscoveryMethodCreate abyUridiscovery method carrying the supplied URI.Return the certificate carried by abyInclusionmethod, ornullfor the other alternatives.static CertDiscoveryMethodgetInstance(Object obj) intgetType()getUri()Return the URI carried by abyUrimethod, ornullfor the other alternatives.Method providing a primitive representation of this object suitable for encoding.Methods inherited from class ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
byUri
public static final int byUri- See Also:
-
byInclusion
public static final int byInclusion- See Also:
-
byLocalPolicy
public static final int byLocalPolicy- See Also:
-
-
Method Details
-
byUri
Create abyUridiscovery method carrying the supplied URI. -
byInclusion
Create abyInclusiondiscovery method embedding the supplied certificate directly. -
byLocalPolicy
Create abyLocalPolicydiscovery method (the wire form is ASN.1 NULL; the relying party resolves the certificate through local configuration). -
getInstance
-
getType
public int getType() -
getUri
Return the URI carried by abyUrimethod, ornullfor the other alternatives. -
getCertificate
Return the certificate carried by abyInclusionmethod, ornullfor the other alternatives. -
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.
-