Enum Class OutputOOBAction

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

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

  • Method Details

    • values

      public static OutputOOBAction[] 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 OutputOOBAction 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
    • getOutputOOBAction

      public short getOutputOOBAction()
    • fromValue

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

      public static String getOutputOOBActionDescription(OutputOOBAction type)
      Returns the Output OOB Action description
      Parameters:
      type - Output OOB type
      Returns:
      Input OOB type description
    • parseOutputActionsFromBitMask

      public static List<OutputOOBAction> parseOutputActionsFromBitMask(int outputAction)
      Parses the output oob action value
      Parameters:
      outputAction - type of output action
      Returns:
      selected output action type
    • getOutputOOBActionValue

      public static int getOutputOOBActionValue(OutputOOBAction type)
      Returns the Output OOB Action value
      Parameters:
      type - output OOB type
    • getOutputOOBActionValue

      public static int getOutputOOBActionValue(short actionType)
      Returns the Output OOB Action value
      Parameters:
      actionType - output OOB action type
    • generateOutputOOBAuthenticationValue

      public static byte[] generateOutputOOBAuthenticationValue(OutputOOBAction outputActionType, String input)
      Creates 128-bit authentication value
      Parameters:
      outputActionType - selected OutputOOBAction
      input - input