Package org.mozilla.jss.pkix.crmf
Class PKIPublicationInfo
java.lang.Object
org.mozilla.jss.pkix.crmf.PKIPublicationInfo
- All Implemented Interfaces:
ASN1Value
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 }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding a PKIPublicationInfo. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
static final int
A SinglePubInfo publication method.static final int
A PKIPublicationInfo action.static final int
A SinglePubInfo publication method.static final int
A PKIPublicationInfo action.private SEQUENCE
private static final Tag
private static final PKIPublicationInfo.Template
static final int
A SinglePubInfo publication method.static final int
A SinglePubInfo publication method. -
Constructor Summary
ConstructorsConstructorDescriptionPKIPublicationInfo
(int action, SEQUENCE pubInfos) Creates a new PKIPublicationInfo. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Returns the action field.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.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static PKIPublicationInfo.Template
int
Returns the number of SinglePubInfos.
-
Field Details
-
DONT_PUBLISH
public static final int DONT_PUBLISHA PKIPublicationInfo action.- See Also:
-
PLEASE_PUBLISH
public static final int PLEASE_PUBLISHA PKIPublicationInfo action.- See Also:
-
DONT_CARE
public static final int DONT_CAREA SinglePubInfo publication method.- See Also:
-
X500
public static final int X500A SinglePubInfo publication method.- See Also:
-
WEB
public static final int WEBA SinglePubInfo publication method.- See Also:
-
LDAP
public static final int LDAPA SinglePubInfo publication method.- See Also:
-
action
private int action -
pubInfos
-
TAG
-
templateInstance
-
-
Constructor Details
-
PKIPublicationInfo
Creates a new PKIPublicationInfo.- Parameters:
action
- DONT_PUBLISH or PLEASE_PUBLISH.pubInfos
- A SEQUENCE of SinglePubInfo, may be null.
-
-
Method Details
-
getAction
public int getAction()Returns the action field. -
numPubInfos
public int numPubInfos()Returns the number of SinglePubInfos. May be zero. -
getPubMethod
public int getPubMethod(int index) Returns the pubMethod in the SinglePubInfo at the given index. Should return DONT_CARE, X500, WEB, or LDAP. -
getPubLocation
Returns the pubLocation in the SinglePubInfo at the given index. May return null, since pubLocation is an optional field. -
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-