io.github.zeroone3010.yahueapi.HueBridgeProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yetanotherhueapi Show documentation
Show all versions of yetanotherhueapi Show documentation
A library for controlling Philips Hue lights.
package io.github.zeroone3010.yahueapi;
/**
* An enumeration on what kind of a connection one wants with the Bridge: HTTP or HTTPS.
*/
public enum HueBridgeProtocol {
/**
* A regular, unprotected HTTP connection.
*
* @deprecated All the bridges will stop supporting plain HTTP connections once they eventually receive
* Signify signed certificates.
*/
@Deprecated
HTTP("http"),
/**
* An encrypted HTTPS connection. However, as the Bridge uses a self-signed certificate,
* it is not possible to verify it. Using this enum value turns off the certificate
* verification.
*/
UNVERIFIED_HTTPS("https");
private final String protocol;
HueBridgeProtocol(final String protocol) {
this.protocol = protocol;
}
String getProtocol() {
return protocol;
}
}