Package org.bouncycastle.asn1.x509
Class CertDiscoveryMethod
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.x509.CertDiscoveryMethod
-
- All Implemented Interfaces:
ASN1Choice,ASN1Encodable,Encodable
public class CertDiscoveryMethod extends ASN1Object implements ASN1Choice
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 ::= IA5StringWherebyUricarries the URI from which the secondary certificate may be downloaded,byInclusionembeds the secondary certificate directly, andbyLocalPolicysignals that the relying party is expected to resolve the secondary certificate through local configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static intbyInclusionstatic intbyLocalPolicystatic intbyUri
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertDiscoveryMethodbyInclusion(Certificate certificate)Create abyInclusiondiscovery method embedding the supplied certificate directly.static CertDiscoveryMethodbyLocalPolicy()Create abyLocalPolicydiscovery method (the wire form is ASN.1 NULL; the relying party resolves the certificate through local configuration).static CertDiscoveryMethodbyUri(java.lang.String uri)Create abyUridiscovery method carrying the supplied URI.CertificategetCertificate()Return the certificate carried by abyInclusionmethod, ornullfor the other alternatives.static CertDiscoveryMethodgetInstance(java.lang.Object obj)intgetType()java.lang.StringgetUri()Return the URI carried by abyUrimethod, ornullfor the other alternatives.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
-
-
-
-
Field Detail
-
byUri
public static final int byUri
- See Also:
- Constant Field Values
-
byInclusion
public static final int byInclusion
- See Also:
- Constant Field Values
-
byLocalPolicy
public static final int byLocalPolicy
- See Also:
- Constant Field Values
-
-
Method Detail
-
byUri
public static CertDiscoveryMethod byUri(java.lang.String uri)
Create abyUridiscovery method carrying the supplied URI.
-
byInclusion
public static CertDiscoveryMethod byInclusion(Certificate certificate)
Create abyInclusiondiscovery method embedding the supplied certificate directly.
-
byLocalPolicy
public static CertDiscoveryMethod byLocalPolicy()
Create abyLocalPolicydiscovery method (the wire form is ASN.1 NULL; the relying party resolves the certificate through local configuration).
-
getInstance
public static CertDiscoveryMethod getInstance(java.lang.Object obj)
-
getType
public int getType()
-
getUri
public java.lang.String getUri()
Return the URI carried by abyUrimethod, ornullfor the other alternatives.
-
getCertificate
public Certificate getCertificate()
Return the certificate carried by abyInclusionmethod, ornullfor the other alternatives.
-
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.
-
-