Package org.mozilla.jss.pkix.crmf
Class PKIPublicationInfo
- java.lang.Object
-
- org.mozilla.jss.pkix.crmf.PKIPublicationInfo
-
- All Implemented Interfaces:
ASN1Value
public class PKIPublicationInfo extends java.lang.Object implements 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 Classes Modifier and Type Class Description static classPKIPublicationInfo.TemplateA Template for decoding a PKIPublicationInfo.
-
Field Summary
Fields Modifier and Type Field Description static intDONT_CAREA SinglePubInfo publication method.static intDONT_PUBLISHA PKIPublicationInfo action.static intLDAPA SinglePubInfo publication method.static intPLEASE_PUBLISHA PKIPublicationInfo action.static intWEBA SinglePubInfo publication method.static intX500A SinglePubInfo publication method.
-
Constructor Summary
Constructors Constructor Description PKIPublicationInfo(int action, SEQUENCE pubInfos)Creates a new PKIPublicationInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream ostream)Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, java.io.OutputStream ostream)Write this value's DER encoding to an output stream using an implicit tag.intgetAction()Returns the action field.ANYgetPubLocation(int index)Returns the pubLocation in the SinglePubInfo at the given index.intgetPubMethod(int index)Returns the pubMethod in the SinglePubInfo at the given index.TaggetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static PKIPublicationInfo.TemplategetTemplate()intnumPubInfos()Returns the number of SinglePubInfos.
-
-
-
Field Detail
-
DONT_PUBLISH
public static final int DONT_PUBLISH
A PKIPublicationInfo action.- See Also:
- Constant Field Values
-
PLEASE_PUBLISH
public static final int PLEASE_PUBLISH
A PKIPublicationInfo action.- See Also:
- Constant Field Values
-
DONT_CARE
public static final int DONT_CARE
A SinglePubInfo publication method.- See Also:
- Constant Field Values
-
X500
public static final int X500
A SinglePubInfo publication method.- See Also:
- Constant Field Values
-
WEB
public static final int WEB
A SinglePubInfo publication method.- See Also:
- Constant Field Values
-
LDAP
public static final int LDAP
A SinglePubInfo publication method.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PKIPublicationInfo
public PKIPublicationInfo(int action, SEQUENCE pubInfos)Creates a new PKIPublicationInfo.- Parameters:
action- DONT_PUBLISH or PLEASE_PUBLISH.pubInfos- A SEQUENCE of SinglePubInfo, may be null.
-
-
Method Detail
-
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
public ANY getPubLocation(int index)
Returns the pubLocation in the SinglePubInfo at the given index. May return null, since pubLocation is an optional field.
-
getTag
public Tag getTag()
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
encode
public void encode(java.io.OutputStream ostream) throws java.io.IOExceptionDescription copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.
-
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.
-
getTemplate
public static PKIPublicationInfo.Template getTemplate()
-
-