Enum Class AlgorithmType

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

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

    • NONE

      public static final AlgorithmType NONE
      Static OOB Type
    • FIPS_P_256_ELLIPTIC_CURVE

      public static final AlgorithmType FIPS_P_256_ELLIPTIC_CURVE
  • Method Details

    • values

      public static AlgorithmType[] 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 AlgorithmType 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
    • getAlgorithmType

      public short getAlgorithmType()
      Returns the algorithm oob type value
    • fromValue

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

      public static ArrayList<AlgorithmType> getAlgorithmTypeFromBitMask(short algorithmTypeValue)
      Parses the output oob action value
      Parameters:
      algorithmTypeValue - algorithm type
      Returns:
      selected output action type
    • getAlgorithmTypeDescription

      public static String getAlgorithmTypeDescription(AlgorithmType type)
      Returns the algorithm description
      Parameters:
      type - AlgorithmType type
      Returns:
      Input OOB type description
    • getAlgorithmValue

      public static byte getAlgorithmValue(short type)