public class SinglePubInfo extends java.lang.Object implements ASN1Type
SinglePubInfo ::= SEQUENCE {
pubMethod INTEGER {
dontCare (0),
x500 (1),
web (2),
ldap (3)
},
pubLocation GeneralName OPTIONAL
}
| Modifier and Type | Field and Description |
|---|---|
static byte |
pubMethod_dontCare
PubMethod value - dontCare.
|
static byte |
pubMethod_ldap
PubMethod value - ldap.
|
static byte |
pubMethod_web
PubMethod value - web.
|
static byte |
pubMethod_x500
PubMethod value - x500.
|
| Constructor and Description |
|---|
SinglePubInfo(ASN1Object obj)
Creates a
SinglePubInfo object from an ASN1Object. |
SinglePubInfo(int pubMethod)
Creates a new
SinglePubInfo object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a SinglePubInfo structure from an
ASN1Object. |
GeneralName |
getPubLocation()
Returns the publication location if it exists; otherwise
null
is returned. |
int |
getPubMethod()
Returns the publication method.
|
void |
setPubLocation(GeneralName pubLocation)
Sets the pubication location.
|
ASN1Object |
toASN1Object()
Encodes this
SinglePubInfo as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
SinglePubInfo object. |
public static final byte pubMethod_dontCare
public static final byte pubMethod_x500
public static final byte pubMethod_web
public static final byte pubMethod_ldap
public SinglePubInfo(int pubMethod)
SinglePubInfo object with the specified
component.pubMethod - the publication methodpublic SinglePubInfo(ASN1Object obj) throws CodingException
SinglePubInfo object from an ASN1Object.obj - the ASN.1 representation of a SinglePubInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic int getPubMethod()
public GeneralName getPubLocation()
null
is returned.public void setPubLocation(GeneralName pubLocation)
pubLocation - the pubLocation componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a SinglePubInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
SinglePubInfo as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
SinglePubInfo object.toString in class java.lang.Object