Package net.shibboleth.tool.xmlsectool
Enum ReturnCode
- java.lang.Object
-
- java.lang.Enum<ReturnCode>
-
- net.shibboleth.tool.xmlsectool.ReturnCode
-
- All Implemented Interfaces:
Serializable,Comparable<ReturnCode>
public enum ReturnCode extends Enum<ReturnCode>
Return codes for the command-line application.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RC_INITReturn code indicating an initialization error, 1.RC_INVALID_CREDReturn code indicating an error reading the credentials, 6.RC_INVALID_XMLReturn code indicating input XML was not valid, 4.RC_INVALID_XSReturn code indicating an error validating the XML, 5.RC_IOReturn code indicating an error reading files, 2.RC_MALFORMED_XMLReturn code indicating the input XML was not well formed, 3.RC_NOHOMEReturn code indicating that the JAVA_HOME variable is not set within the shell script, 8.RC_NOJAVAReturn code indicating that the "java" command is not executable within the shell script, 9.RC_OKReturn code indicating command completed successfully, 0.RC_SIGReturn code indicating indicating that signing or signature verification failed, 7.RC_UNKNOWNReturn code indicating an unknown error occurred, -1.
-
Field Summary
Fields Modifier and Type Field Description private intcodeReturn code value.
-
Constructor Summary
Constructors Modifier Constructor Description privateReturnCode(int c)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Gets the return code value.static ReturnCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ReturnCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RC_OK
public static final ReturnCode RC_OK
Return code indicating command completed successfully, 0.
-
RC_INIT
public static final ReturnCode RC_INIT
Return code indicating an initialization error, 1.
-
RC_IO
public static final ReturnCode RC_IO
Return code indicating an error reading files, 2.
-
RC_MALFORMED_XML
public static final ReturnCode RC_MALFORMED_XML
Return code indicating the input XML was not well formed, 3.
-
RC_INVALID_XML
public static final ReturnCode RC_INVALID_XML
Return code indicating input XML was not valid, 4.
-
RC_INVALID_XS
public static final ReturnCode RC_INVALID_XS
Return code indicating an error validating the XML, 5.
-
RC_INVALID_CRED
public static final ReturnCode RC_INVALID_CRED
Return code indicating an error reading the credentials, 6.
-
RC_SIG
public static final ReturnCode RC_SIG
Return code indicating indicating that signing or signature verification failed, 7.
-
RC_NOHOME
public static final ReturnCode RC_NOHOME
Return code indicating that the JAVA_HOME variable is not set within the shell script, 8.
-
RC_NOJAVA
public static final ReturnCode RC_NOJAVA
Return code indicating that the "java" command is not executable within the shell script, 9.
-
RC_UNKNOWN
public static final ReturnCode RC_UNKNOWN
Return code indicating an unknown error occurred, -1.
-
-
Method Detail
-
values
public static ReturnCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReturnCode c : ReturnCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReturnCode valueOf(String name)
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
-
getCode
public int getCode()
Gets the return code value.- Returns:
- the return code value
-
-