Package com.thalesgroup.tpcsdk.enums
Enum TokenAction
- java.lang.Object
-
- java.lang.Enum<TokenAction>
-
- com.thalesgroup.tpcsdk.enums.TokenAction
-
- All Implemented Interfaces:
Serializable,Comparable<TokenAction>
public enum TokenAction extends Enum<TokenAction>
TokenActionused to update token statusTSHProxy.updateTokenState(String, String, String, String, TokenAction, TPCSDKListener)- Since:
- 1.0
- Version:
- 1.1
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()static TokenActionvalueOf(String name)Returns the enum constant of this type with the specified name.static TokenAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVATE
public static final TokenAction ACTIVATE
Use this action to activate the given token
-
SUSPEND
public static final TokenAction SUSPEND
Use this action to suspend the given token
-
RESUME
public static final TokenAction RESUME
Use this action to suspend the given token
-
DELETE
public static final TokenAction DELETE
Use this action to delete the given token
-
-
Method Detail
-
values
public static TokenAction[] 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 (TokenAction c : TokenAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenAction 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
-
getAction
public String getAction()
-
-