Package io.github.zeroone3010.yahueapi
Enum 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.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description HTTPSRecommendedUNVERIFIED_HTTPSAn encrypted HTTPS connection. -
Method Summary
Modifier and Type Method Description static HueBridgeProtocolvalueOf(String name)Returns the enum constant of this type with the specified name.static HueBridgeProtocol[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HTTPS
RecommendedAn 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
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
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
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 nameNullPointerException- if the argument is null
-