Enum PKIFailureInfo
- All Implemented Interfaces:
Serializable,Comparable<PKIFailureInfo>
public enum PKIFailureInfo extends Enum<PKIFailureInfo>
Corresponds to PKIFailureInfo structure.
See RFC 3161 -
Internet X.509 Public Key Infrastructure
Time-Stamp Protocol (TSP)
http://www.ietf.org/rfc/rfc3161.txt)
PKIFailureInfo ::= BIT STRING {
badAlg (0),
-- unrecognized or unsupported Algorithm Identifier
badRequest (2),
-- transaction not permitted or supported
badDataFormat (5),
-- the data submitted has the wrong format
timeNotAvailable (14),
-- the TSA's time source is not available
unacceptedPolicy (15),
-- the requested TSA policy is not supported by the TSA
unacceptedExtension (16),
-- the requested extension is not supported by the TSA
addInfoNotAvailable (17)
-- the additional information requested could not be understood
-- or is not available
systemFailure (25)
-- the request cannot be handled due to system failure }
The value of PKIFailureInfo can take only one of the values,
so it is represented by an integer here.
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_INFO_NOT_AVAILABLEThe requested additional info is not availableBAD_ALGUnrecognized algorithm IDBAD_DATA_FORMATData format is wrongBAD_REQUESTTransaction is not supportedSYSTEM_FAILURESystem failure has occuredTIME_NOT_AVAILABLETSA cannot use the time sourceUNACCEPTED_EXTENSIONThe extension is not supportedUNACCEPTED_POLICYThe policy is not supported -
Method Summary
Modifier and Type Method Description static PKIFailureInfogetInstance(int value)static intgetMaxValue()intgetValue()static PKIFailureInfovalueOf(String name)Returns the enum constant of this type with the specified name.static PKIFailureInfo[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BAD_ALG
Unrecognized algorithm ID -
BAD_REQUEST
Transaction is not supported -
BAD_DATA_FORMAT
Data format is wrong -
TIME_NOT_AVAILABLE
TSA cannot use the time source -
UNACCEPTED_POLICY
The policy is not supported -
UNACCEPTED_EXTENSION
The extension is not supported -
ADD_INFO_NOT_AVAILABLE
The requested additional info is not available -
SYSTEM_FAILURE
System failure has occured
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()- Returns:
- int value of the failure
-
getMaxValue
public static int getMaxValue()- Returns:
- maximum of values in the enum
-
getInstance
- Parameters:
value-- Returns:
-