Enum HueBridgeProtocol

java.lang.Object
java.lang.Enum<HueBridgeProtocol>
io.github.zeroone3010.yahueapi.HueBridgeProtocol
All Implemented Interfaces:
Serializable, Comparable<HueBridgeProtocol>, java.lang.constant.Constable

public enum HueBridgeProtocol
extends Enum<HueBridgeProtocol>
An enumeration on what kind of a connection one wants with the Bridge. Plain HTTP used to be an option but Philips announced it will not be supported anymore.
  • Enum Constant Details

    • HTTPS

      public static final HueBridgeProtocol HTTPS
      Recommended

      An encrypted HTTPS connection. The Bridge certificate is verified against the stored Root CA certificate issued by Signify. However, in the case of older Bridge models that still employ self-signed certificates, this validation process will result in a failure.

      See Also:
      Hue Documentation
    • UNVERIFIED_HTTPS

      public static final HueBridgeProtocol UNVERIFIED_HTTPS
      An encrypted HTTPS connection. However, as older Bridges use a self-signed certificate, it is not possible to verify it. Using this enum value turns off the certificate verification.
  • Method Details

    • values

      public static HueBridgeProtocol[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HueBridgeProtocol 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 name
      NullPointerException - if the argument is null