org.mozilla.jss.pkix.crmf
Class PKIPublicationInfo
java.lang.Object
org.mozilla.jss.pkix.crmf.PKIPublicationInfo
- ASN1Value
public class PKIPublicationInfo
extends java.lang.Object
CRMF
PKIPublicationInfo:
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 }
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.
|
void | encode(OutputStream ostream) - Write this value's DER encoding to an output stream using
its own base tag.
|
void | encode(Tag implicitTag, 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.
|
DONT_CARE
public static final int DONT_CARE
A SinglePubInfo publication method.
DONT_PUBLISH
public static final int DONT_PUBLISH
A PKIPublicationInfo action.
LDAP
public static final int LDAP
A SinglePubInfo publication method.
PLEASE_PUBLISH
public static final int PLEASE_PUBLISH
A PKIPublicationInfo action.
WEB
public static final int WEB
A SinglePubInfo publication method.
X500
public static final int X500
A SinglePubInfo publication method.
PKIPublicationInfo
public PKIPublicationInfo(int action,
SEQUENCE pubInfos)
Creates a new PKIPublicationInfo.
action
- DONT_PUBLISH or PLEASE_PUBLISH.pubInfos
- A SEQUENCE of SinglePubInfo, may be null.
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getAction
public int getAction()
Returns the action field.
getPubLocation
public ANY getPubLocation(int index)
Returns the pubLocation in the SinglePubInfo at the given index.
May return null, since pubLocation is an optional field.
getPubMethod
public int getPubMethod(int index)
Returns the pubMethod in the SinglePubInfo at the given index.
Should return DONT_CARE, X500, WEB, or LDAP.
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value
numPubInfos
public int numPubInfos()
Returns the number of SinglePubInfos. May be zero.