org.mozilla.jss.pkix.cmc

Class OtherInfo

public class OtherInfo extends Object implements ASN1Value

CMCStatusInfo OtherInfo:
   OtherInfo ::= CHOICE { 
       failInfo INTEGER, 
       pendInfo PendInfo 
   } 
 
Nested Class Summary
static classOtherInfo.Template
A Template for decoding a OtherInfo.
static classOtherInfo.Type
The type of OtherInfo.
Field Summary
static intBAD_ALG
static intBAD_CERT_ID
static intBAD_IDENTITY
static intBAD_MESSAGE_CHECK
static intBAD_REQUEST
static intBAD_TIME
static OtherInfo.TypeFAIL
static String[]FAIL_INFO
static intINTERNAL_CA_ERROR
static intMUST_ARCHIVE_KEYS
static intNO_KEY_REUSE
static OtherInfo.TypePEND
static intPOP_FAILED
static intPOP_REQUIRED
static intTRY_LATER
static intUNSUPORTED_EXT
Constructor Summary
OtherInfo()
OtherInfo(OtherInfo.Type type, INTEGER failInfo, PendInfo pendInfo)
Constructs a OtherInfo from its components.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
INTEGERgetFailInfo()
If type == FAIL, returns the failInfo field.
PendInfogetPendInfo()
If type == PEND, returns the pendInfo field.
TaggetTag()
static OtherInfo.TemplategetTemplate()
OtherInfo.TypegetType()
Returns the type of OtherInfo:
  • FAIL
  • PEND

Field Detail

BAD_ALG

public static final int BAD_ALG

BAD_CERT_ID

public static final int BAD_CERT_ID

BAD_IDENTITY

public static final int BAD_IDENTITY

BAD_MESSAGE_CHECK

public static final int BAD_MESSAGE_CHECK

BAD_REQUEST

public static final int BAD_REQUEST

BAD_TIME

public static final int BAD_TIME

FAIL

public static OtherInfo.Type FAIL

FAIL_INFO

public static final String[] FAIL_INFO

INTERNAL_CA_ERROR

public static final int INTERNAL_CA_ERROR

MUST_ARCHIVE_KEYS

public static final int MUST_ARCHIVE_KEYS

NO_KEY_REUSE

public static final int NO_KEY_REUSE

PEND

public static OtherInfo.Type PEND

POP_FAILED

public static final int POP_FAILED

POP_REQUIRED

public static final int POP_REQUIRED

TRY_LATER

public static final int TRY_LATER

UNSUPORTED_EXT

public static final int UNSUPORTED_EXT

Constructor Detail

OtherInfo

public OtherInfo()

OtherInfo

public OtherInfo(OtherInfo.Type type, INTEGER failInfo, PendInfo pendInfo)
Constructs a OtherInfo from its components.

Parameters: type The type of the otherInfo. failInfo the CMCFailInfo code. pendInfo the pending information.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getFailInfo

public INTEGER getFailInfo()
If type == FAIL, returns the failInfo field. Otherwise, returns null.

getPendInfo

public PendInfo getPendInfo()
If type == PEND, returns the pendInfo field. Otherwise, returns null.

getTag

public Tag getTag()

getTemplate

public static OtherInfo.Template getTemplate()

getType

public OtherInfo.Type getType()
Returns the type of OtherInfo: