Package com.pnfsoftware.jeb.core
Class ControllerInfo
java.lang.Object
com.pnfsoftware.jeb.core.ControllerInfo
Floating controller information.
-
Constructor Summary
ConstructorsConstructorDescriptionControllerInfo(InetSocketAddress address, int protocol, String clientMessage, Collection<String> allowedPins) Create a floating-controller descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGet the controller socket address.Get the optional client message associated with the controller configuration.Get the configured controller hostname or bind interface.intgetPort()Get the controller port.intGet the controller protocol identifier.
-
Constructor Details
-
ControllerInfo
public ControllerInfo(InetSocketAddress address, int protocol, String clientMessage, Collection<String> allowedPins) Create a floating-controller descriptor.- Parameters:
address- controller addressprotocol- controller protocol identifierclientMessage- optional message sent by the clientallowedPins- collection of allowed server certificate pins (used only with protocol=2, to bypass trust and hostname validation)
-
-
Method Details
-
getAddress
Get the controller socket address.- Returns:
- controller address
-
getInterface
Get the configured controller hostname or bind interface.- Returns:
- hostname or interface
-
getPort
public int getPort()Get the controller port.- Returns:
- port number
-
getProtocol
public int getProtocol()Get the controller protocol identifier.- Returns:
- protocol identifier
-
getClientMessage
Get the optional client message associated with the controller configuration.- Returns:
- client message, or null if none was provided
-
getAllowedPins
- Returns:
-