org.mozilla.jss.pkix.cmc
Class OtherInfo
java.lang.Object
|
+--org.mozilla.jss.pkix.cmc.OtherInfo
- All Implemented Interfaces:
- ASN1Value
- public class OtherInfo
- extends java.lang.Object
- implements ASN1Value
CMCStatusInfo OtherInfo:
OtherInfo ::= CHOICE {
failInfo INTEGER,
pendInfo PendInfo
}
Method Summary |
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. |
INTEGER |
getFailInfo()
If type == FAIL, returns the failInfo field. |
PendInfo |
getPendInfo()
If type == PEND, returns the pendInfo field. |
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context. |
static OtherInfo.Template |
getTemplate()
|
OtherInfo.Type |
getType()
Returns the type of OtherInfo:
FAIL
PEND
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
BAD_ALG
public static final int BAD_ALG
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
BAD_CERT_ID
public static final int BAD_CERT_ID
UNSUPORTED_EXT
public static final int UNSUPORTED_EXT
MUST_ARCHIVE_KEYS
public static final int MUST_ARCHIVE_KEYS
BAD_IDENTITY
public static final int BAD_IDENTITY
POP_REQUIRED
public static final int POP_REQUIRED
POP_FAILED
public static final int POP_FAILED
NO_KEY_REUSE
public static final int NO_KEY_REUSE
INTERNAL_CA_ERROR
public static final int INTERNAL_CA_ERROR
TRY_LATER
public static final int TRY_LATER
FAIL_INFO
public static final java.lang.String[] FAIL_INFO
FAIL
public static OtherInfo.Type FAIL
PEND
public static OtherInfo.Type PEND
type
private OtherInfo.Type type
failInfo
private INTEGER failInfo
pendInfo
private PendInfo pendInfo
templateInstance
private static final OtherInfo.Template templateInstance
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.
getType
public OtherInfo.Type getType()
- Returns the type of OtherInfo:
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()
- 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.
- Specified by:
getTag
in interface ASN1Value
encode
public void encode(java.io.OutputStream ostream)
throws java.io.IOException
- Description copied from interface:
ASN1Value
- Write this value's DER encoding to an output stream using
its own base tag.
- Specified by:
encode
in interface ASN1Value
encode
public void encode(Tag implicitTag,
java.io.OutputStream ostream)
throws java.io.IOException
- Description copied from interface:
ASN1Value
- Write this value's DER encoding to an output stream using
an implicit tag.
- Specified by:
encode
in interface ASN1Value
getTemplate
public static OtherInfo.Template getTemplate()