Package 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
CMCStatusInfoV2 OtherInfo:OtherInfo ::= CHOICE { failInfo INTEGER, pendInfo PendInfo, extendedFailInfo SEQUENCE { // ExtendedFailInfo failInfoOID OBJECT IDENTIFIER, failInfoValue AttributeValue } OPTIONAL }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOtherInfo.TemplateA Template for decoding a OtherInfo.static classOtherInfo.TypeThe type of OtherInfo.
-
Field Summary
Fields Modifier and Type Field Description static intauthDataFailstatic intBAD_ALGstatic intBAD_CERT_IDstatic intBAD_IDENTITYstatic intBAD_MESSAGE_CHECKstatic intBAD_REQUESTstatic intBAD_TIMEstatic OtherInfo.TypeEXTENDEDstatic OtherInfo.TypeFAILstatic java.lang.String[]FAIL_INFOstatic intINTERNAL_CA_ERRORstatic intMUST_ARCHIVE_KEYSstatic intNO_KEY_REUSEstatic OtherInfo.TypePENDstatic intPOP_FAILEDstatic intPOP_REQUIREDstatic intTRY_LATERstatic intUNSUPORTED_EXT
-
Constructor Summary
Constructors Constructor Description OtherInfo()OtherInfo(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
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.ExtendedFailInfogetExtendedFailInfo()If type == EXTENDED, returns the extendedFailInfo field.INTEGERgetFailInfo()If type == FAIL, returns the failInfo field.PendInfogetPendInfo()If type == PEND, returns the pendInfo field.TaggetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static OtherInfo.TemplategetTemplate()OtherInfo.TypegetType()Returns the type of OtherInfo:FAILPENDEXTENDED
-
-
-
Field Detail
-
BAD_ALG
public static final int BAD_ALG
- See Also:
- Constant Field Values
-
BAD_MESSAGE_CHECK
public static final int BAD_MESSAGE_CHECK
- See Also:
- Constant Field Values
-
BAD_REQUEST
public static final int BAD_REQUEST
- See Also:
- Constant Field Values
-
BAD_TIME
public static final int BAD_TIME
- See Also:
- Constant Field Values
-
BAD_CERT_ID
public static final int BAD_CERT_ID
- See Also:
- Constant Field Values
-
UNSUPORTED_EXT
public static final int UNSUPORTED_EXT
- See Also:
- Constant Field Values
-
MUST_ARCHIVE_KEYS
public static final int MUST_ARCHIVE_KEYS
- See Also:
- Constant Field Values
-
BAD_IDENTITY
public static final int BAD_IDENTITY
- See Also:
- Constant Field Values
-
POP_REQUIRED
public static final int POP_REQUIRED
- See Also:
- Constant Field Values
-
POP_FAILED
public static final int POP_FAILED
- See Also:
- Constant Field Values
-
NO_KEY_REUSE
public static final int NO_KEY_REUSE
- See Also:
- Constant Field Values
-
INTERNAL_CA_ERROR
public static final int INTERNAL_CA_ERROR
- See Also:
- Constant Field Values
-
TRY_LATER
public static final int TRY_LATER
- See Also:
- Constant Field Values
-
authDataFail
public static final int authDataFail
- See Also:
- Constant Field Values
-
FAIL_INFO
public static final java.lang.String[] FAIL_INFO
-
FAIL
public static OtherInfo.Type FAIL
-
PEND
public static OtherInfo.Type PEND
-
EXTENDED
public static OtherInfo.Type EXTENDED
-
-
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. 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 Detail
-
getType
public OtherInfo.Type getType()
Returns the type of OtherInfo:FAILPENDEXTENDED
-
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.
-
getExtendedFailInfo
public ExtendedFailInfo getExtendedFailInfo()
If type == EXTENDED, returns the extendedFailInfo field. Otherwise, returns null.
-
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 OtherInfo.Template getTemplate()
-
-