public class PKIPublicationInfo extends java.lang.Object implements ASN1Value
PKIPublicationInfo ::= SEQUENCE { action INTEGER { dontPublish (0), pleasePublish (1) }, pubInfos SEQUENCE SIZE (1..MAX) OF SinglePubInfo OPTIONAL } SinglePubInfo ::= SEQUENCE { pubMethod INTEGER { dontCare (0), x500 (1), web (2), ldap (3) }, pubLocation GeneralName OPTIONAL }
Modifier and Type | Class and Description |
---|---|
static class |
PKIPublicationInfo.Template
A Template for decoding a PKIPublicationInfo.
|
Modifier and Type | Field and Description |
---|---|
static int |
DONT_CARE
A SinglePubInfo publication method.
|
static int |
DONT_PUBLISH
A PKIPublicationInfo action.
|
static int |
LDAP
A SinglePubInfo publication method.
|
static int |
PLEASE_PUBLISH
A PKIPublicationInfo action.
|
static int |
WEB
A SinglePubInfo publication method.
|
static int |
X500
A SinglePubInfo publication method.
|
Constructor and Description |
---|
PKIPublicationInfo(int action,
SEQUENCE pubInfos)
Creates a new PKIPublicationInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
int |
getAction()
Returns the action field.
|
ANY |
getPubLocation(int index)
Returns the pubLocation in the SinglePubInfo at the given index.
|
int |
getPubMethod(int index)
Returns the pubMethod in the SinglePubInfo at the given index.
|
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static PKIPublicationInfo.Template |
getTemplate() |
int |
numPubInfos()
Returns the number of SinglePubInfos.
|
public static final int DONT_PUBLISH
public static final int PLEASE_PUBLISH
public static final int DONT_CARE
public static final int X500
public static final int WEB
public static final int LDAP
public PKIPublicationInfo(int action, SEQUENCE pubInfos)
action
- DONT_PUBLISH or PLEASE_PUBLISH.pubInfos
- A SEQUENCE of SinglePubInfo, may be null.public int getAction()
public int numPubInfos()
public int getPubMethod(int index)
public ANY getPubLocation(int index)
public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public static PKIPublicationInfo.Template getTemplate()