Package com.aresstack.keepassrpc.pairing
Class KeePassRpcEndpoint
java.lang.Object
com.aresstack.keepassrpc.pairing.KeePassRpcEndpoint
Immutable host and port pair for a KeePassRPC WebSocket endpoint.
KeePassRPC usually listens on 127.0.0.1:12546. Applications can use
this value object to pass explicit endpoint settings to pairing and credential
clients.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_HOST
- See Also:
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
-
Constructor Details
-
KeePassRpcEndpoint
Create an endpoint.- Parameters:
host- hostname or IP address; blank values fall back toDEFAULT_HOSTport- TCP port in the range1..65535
-
-
Method Details
-
localhost
Return the default local KeePassRPC endpoint.- Returns:
- endpoint for
127.0.0.1:12546
-
getHost
-
getPort
public int getPort() -
toWebSocketUri
Convert the endpoint to the WebSocket URI used by KeePassRPC.- Returns:
- WebSocket URI such as
ws://127.0.0.1:12546/
-
toString
-
equals
-
hashCode
public int hashCode()
-