public class CertDiscoveryMethod extends ASN1Object implements ASN1Choice
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 byOther 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.
byUri carries the URI from which the Referenced Certificate may be
retrieved, byInclusion embeds the Referenced Certificate directly,
byLocalPolicy signals that the relying party is expected to resolve
it through local configuration, and byOther carries a method defined
outside the draft, identified by its type-id.
| Modifier and Type | Field and Description |
|---|---|
static int |
byInclusion
Alternative index for
byInclusion. |
static int |
byLocalPolicy
Alternative index for
byLocalPolicy. |
static int |
byOther
Alternative index for
byOther (carried on the wire under context tag [0]). |
static int |
byUri
Alternative index for
byUri. |
| Modifier and Type | Method and Description |
|---|---|
static CertDiscoveryMethod |
byInclusion(Certificate certificate)
Create a
byInclusion discovery method embedding the supplied
certificate directly. |
static CertDiscoveryMethod |
byLocalPolicy()
Create a
byLocalPolicy 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
byOther discovery method, an instance of the
OTHER-DISCOVERY-METHOD information object class. |
static CertDiscoveryMethod |
byUri(java.lang.String uri)
Create a
byUri discovery method carrying the supplied URI. |
Certificate |
getCertificate()
Return the certificate carried by a
byInclusion method, or
null for the other alternatives. |
static CertDiscoveryMethod |
getInstance(java.lang.Object obj) |
ASN1ObjectIdentifier |
getOtherMethodType()
Return the type-id of a
byOther method, or null for the
other alternatives. |
ASN1Encodable |
getOtherMethodValue()
Return the value of a
byOther method, or null for the
other alternatives. |
int |
getType()
|
java.lang.String |
getUri()
Return the URI carried by a
byUri method, or null for
the other alternatives. |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCodepublic static final int byUri
byUri.public static final int byInclusion
byInclusion.public static final int byLocalPolicy
byLocalPolicy.public static final int byOther
byOther (carried on the wire under context tag [0]).public static CertDiscoveryMethod byUri(java.lang.String uri)
byUri discovery method carrying the supplied URI.public static CertDiscoveryMethod byInclusion(Certificate certificate)
byInclusion discovery method embedding the supplied
certificate directly.public static CertDiscoveryMethod byLocalPolicy()
byLocalPolicy discovery method (the wire form is
ASN.1 NULL; the relying party resolves the certificate through local
configuration).public static CertDiscoveryMethod byOther(ASN1ObjectIdentifier methodType, ASN1Encodable methodValue)
byOther discovery method, an instance of the
OTHER-DISCOVERY-METHOD information object class.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()
public java.lang.String getUri()
byUri method, or null for
the other alternatives.public Certificate getCertificate()
byInclusion method, or
null for the other alternatives.public ASN1ObjectIdentifier getOtherMethodType()
byOther method, or null for the
other alternatives.public ASN1Encodable getOtherMethodValue()
byOther method, or null for the
other alternatives.public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object