Enum Class InputOOBAction

java.lang.Object
java.lang.Enum<InputOOBAction>
org.openremote.agent.protocol.bluetooth.mesh.utils.InputOOBAction
All Implemented Interfaces:
Serializable, Comparable<InputOOBAction>, Constable

public enum InputOOBAction extends Enum<InputOOBAction>
  • Enum Constant Details

  • Method Details

    • values

      public static InputOOBAction[] 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

      public static InputOOBAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getInputOOBAction

      public short getInputOOBAction()
    • fromValue

      public static InputOOBAction fromValue(short method)
      Returns the oob method used for authentication
      Parameters:
      method - auth method used
    • getInputOOBActionDescription

      public static String getInputOOBActionDescription(InputOOBAction type)
      Returns the Input OOB Action description
      Parameters:
      type - Input OOB type
      Returns:
      Input OOB type description
    • parseInputActionsFromBitMask

      public static List<InputOOBAction> parseInputActionsFromBitMask(int inputAction)
    • getInputOOBActionValue

      public static int getInputOOBActionValue(InputOOBAction type)
      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 - selected InputOOBAction
      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 - selected InputOOBAction
      size - oob size