Package org.mozilla.jss.pkix.cmc
Class OtherInfo
java.lang.Object
org.mozilla.jss.pkix.cmc.OtherInfo
- All Implemented Interfaces:
ASN1Value
CMCStatusInfoV2 OtherInfo:
OtherInfo ::= CHOICE { failInfo INTEGER, pendInfo PendInfo, extendedFailInfo SEQUENCE { // ExtendedFailInfo failInfoOID OBJECT IDENTIFIER, failInfoValue AttributeValue } OPTIONAL }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding a OtherInfo.static class
The type of OtherInfo. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static OtherInfo.Type
private ExtendedFailInfo
static OtherInfo.Type
static final String[]
private INTEGER
static final int
static final int
static final int
static OtherInfo.Type
private PendInfo
static final int
static final int
private static final OtherInfo.Template
static final int
private OtherInfo.Type
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionOtherInfo
(OtherInfo.Type type, INTEGER failInfo, PendInfo pendInfo) Constructs a OtherInfo from its components.OtherInfo
(OtherInfo.Type type, INTEGER failInfo, PendInfo pendInfo, ExtendedFailInfo extendedFailInfo) Constructs a OtherInfo from its components. -
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.If type == EXTENDED, returns the extendedFailInfo field.If type == FAIL, returns the failInfo field.If type == PEND, returns the pendInfo field.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static OtherInfo.Template
getType()
Returns the type of OtherInfo:FAIL
PEND
EXTENDED
-
Field Details
-
BAD_ALG
public static final int BAD_ALG- See Also:
-
BAD_MESSAGE_CHECK
public static final int BAD_MESSAGE_CHECK- See Also:
-
BAD_REQUEST
public static final int BAD_REQUEST- See Also:
-
BAD_TIME
public static final int BAD_TIME- See Also:
-
BAD_CERT_ID
public static final int BAD_CERT_ID- See Also:
-
UNSUPORTED_EXT
public static final int UNSUPORTED_EXT- See Also:
-
MUST_ARCHIVE_KEYS
public static final int MUST_ARCHIVE_KEYS- See Also:
-
BAD_IDENTITY
public static final int BAD_IDENTITY- See Also:
-
POP_REQUIRED
public static final int POP_REQUIRED- See Also:
-
POP_FAILED
public static final int POP_FAILED- See Also:
-
NO_KEY_REUSE
public static final int NO_KEY_REUSE- See Also:
-
INTERNAL_CA_ERROR
public static final int INTERNAL_CA_ERROR- See Also:
-
TRY_LATER
public static final int TRY_LATER- See Also:
-
authDataFail
public static final int authDataFail- See Also:
-
FAIL_INFO
-
FAIL
-
PEND
-
EXTENDED
-
type
-
failInfo
-
pendInfo
-
extendedFailInfo
-
templateInstance
-
-
Constructor Details
-
OtherInfo
public OtherInfo() -
OtherInfo
Constructs a OtherInfo from its components.- Parameters:
type
- The type of the otherInfo.failInfo
- the CMCFailInfo code.pendInfo
- the pending information. Note: kept for backward compatibility for now; new code don't use
-
OtherInfo
public OtherInfo(OtherInfo.Type type, INTEGER failInfo, PendInfo pendInfo, ExtendedFailInfo extendedFailInfo) Constructs a OtherInfo from its components.- Parameters:
type
- The type of the otherInfo.failInfo
- the CMCFailInfo code.pendInfo
- the pending information.extendedFailInfo
- the extendedFailInfo information.
-
-
Method Details
-
getType
Returns the type of OtherInfo:FAIL
PEND
EXTENDED
-
getFailInfo
If type == FAIL, returns the failInfo field. Otherwise, returns null. -
getPendInfo
If type == PEND, returns the pendInfo field. Otherwise, returns null. -
getExtendedFailInfo
If type == EXTENDED, returns the extendedFailInfo field. Otherwise, returns null. -
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
-