Enum Class InputOOBAction
- All Implemented Interfaces:
Serializable
,Comparable<InputOOBAction>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic InputOOBAction
fromValue
(short method) Returns the oob method used for authenticationstatic byte[]
generateInputOOBAuthenticationValue
(InputOOBAction inputOOBAction, byte[] input) Generates the Input OOB Authentication valueshort
static String
Returns the Input OOB Action descriptionstatic int
getInputOOBActionValue
(short type) Returns the Input OOB Action valuestatic int
Returns the Input OOB Action valuestatic byte[]
getInputOOOBAuthenticationValue
(short inputOOBAction, byte size) Returns a randomly generated Input OOB Authentication value to be input by the userstatic List<InputOOBAction>
parseInputActionsFromBitMask
(int inputAction) static InputOOBAction
Returns the enum constant of this class with the specified name.static InputOOBAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_INPUT
Input OOB Actions -
PUSH
-
TWIST
-
INPUT_NUMERIC
-
INPUT_ALPHA_NUMERIC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getInputOOBAction
public short getInputOOBAction() -
fromValue
Returns the oob method used for authentication- Parameters:
method
- auth method used
-
getInputOOBActionDescription
Returns the Input OOB Action description- Parameters:
type
- Input OOB type- Returns:
- Input OOB type description
-
parseInputActionsFromBitMask
-
getInputOOBActionValue
Returns the Input OOB Action value- Parameters:
type
- input OOB type
-
getInputOOBActionValue
public static int getInputOOBActionValue(short type) Returns the Input OOB Action value- Parameters:
type
- input OOB type
-
generateInputOOBAuthenticationValue
public static byte[] generateInputOOBAuthenticationValue(InputOOBAction inputOOBAction, byte[] input) Generates the Input OOB Authentication value- Parameters:
inputOOBAction
- selectedInputOOBAction
input
- Input authentication- Returns:
- 128-bit authentication value
-
getInputOOOBAuthenticationValue
public static byte[] getInputOOOBAuthenticationValue(short inputOOBAction, byte size) Returns a randomly generated Input OOB Authentication value to be input by the user- Parameters:
inputOOBAction
- selectedInputOOBAction
size
- oob size
-