|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.CertDiscoveryMethod
The method used to retrieve a related certificate, as defined by
draft-ietf-lamps-certdiscovery-04 (A Mechanism for X.509 Certificate Discovery).
CertDiscoveryMethod ::= CHOICE {
byUri IA5String,
byInclusion Certificate,
byLocalPolicy NULL,
byOther [0] INSTANCE OF OTHER-DISCOVERY-METHOD
}
OTHER-DISCOVERY-METHOD ::= TYPE-IDENTIFIER
The module is defined with EXPLICIT TAGS, so is an explicitly
tagged SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id },
the same shape as an X.509 OtherName.
carries the URI from which the Referenced Certificate may be retrieved, embeds the Referenced Certificate directly, signals that the relying party is expected to resolve it through local configuration, and carries a method defined outside the draft, identified by its type-id.
| Field Summary | |
static int |
byInclusion
Alternative index for . |
static int |
byLocalPolicy
Alternative index for . |
static int |
byOther
Alternative index for (carried on the wire under context tag [0]). |
static int |
byUri
Alternative index for . |
| Method Summary | |
static CertDiscoveryMethod |
byInclusion(Certificate certificate)
Create a discovery method embedding the supplied certificate directly. |
static CertDiscoveryMethod |
byLocalPolicy()
Create a discovery method (the wire form is ASN.1 NULL; the relying party resolves the certificate through local configuration). |
static CertDiscoveryMethod |
byOther(ASN1ObjectIdentifier methodType,
ASN1Encodable methodValue)
Create a discovery method, an instance of the OTHER-DISCOVERY-METHOD information object class. |
static CertDiscoveryMethod |
byUri(java.lang.String uri)
Create a discovery method carrying the supplied URI. |
Certificate |
getCertificate()
Return the certificate carried by a method, or for the other alternatives. |
static CertDiscoveryMethod |
getInstance(java.lang.Object obj)
|
ASN1ObjectIdentifier |
getOtherMethodType()
Return the type-id of a method, or for the other alternatives. |
ASN1Encodable |
getOtherMethodValue()
Return the value of a method, or for the other alternatives. |
int |
getType()
Return one of byUri, byInclusion, byLocalPolicy,
byOther. |
java.lang.String |
getUri()
Return the URI carried by a method, or for the other alternatives. |
ASN1Primitive |
toASN1Primitive()
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 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int byUri
public static final int byInclusion
public static final int byLocalPolicy
public static final int byOther
| Method Detail |
public static CertDiscoveryMethod byUri(java.lang.String uri)
public static CertDiscoveryMethod byInclusion(Certificate certificate)
public static CertDiscoveryMethod byLocalPolicy()
public static CertDiscoveryMethod byOther(ASN1ObjectIdentifier methodType,
ASN1Encodable methodValue)
methodType - the type-id identifying the method.methodValue - the value associated with that type-id.public static CertDiscoveryMethod getInstance(java.lang.Object obj)
public int getType()
byUri, byInclusion, byLocalPolicy,
byOther.
public java.lang.String getUri()
public Certificate getCertificate()
public ASN1ObjectIdentifier getOtherMethodType()
public ASN1Encodable getOtherMethodValue()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||