org.mozilla.jss.pkix.cmc
Class OtherInfo
java.lang.Object
org.mozilla.jss.pkix.cmc.OtherInfo
- ASN1Value
public class OtherInfo
extends java.lang.Object
CMCStatusInfo
OtherInfo:
OtherInfo ::= CHOICE {
failInfo INTEGER,
pendInfo PendInfo
}
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.
|
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:
|
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_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
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
OtherInfo
public OtherInfo()
OtherInfo
public OtherInfo(OtherInfo.Type type,
INTEGER failInfo,
PendInfo pendInfo)
Constructs a OtherInfo from its components.
type
- The type of the otherInfo.failInfo
- the CMCFailInfo code.pendInfo
- the pending information.
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
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()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value