Package com.clover.remote.client.utils
Class WebSocketUtils
java.lang.Object
com.clover.remote.client.utils.WebSocketUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic URIcreateNonsecureURI(String ipAddress, String port) Creates a URI for a non-secure websocket connection to a Clover Devicestatic URIcreateSecureURI(String ipAddress, String port) Creates a URI for a secure websocket connection to a Clover Devicestatic voidcreateTrustStoreFromNetwork(TrustStoreLoadListener afterLoaded) Creates a default KeyStore from 'https://www.clover.com' of Clover Device CA Certificatesstatic voidcreateTrustStoreFromResource(TrustStoreLoadListener afterLoaded) Creates a default KeyStore from '/resources/certs' of Clover Device CA Certificates
-
Field Details
-
DEV_CERT_URL_PATTERN
- See Also:
-
ENV_CERT_URL_PATTERN
- See Also:
-
CLOVER_PROD_SERVER
- See Also:
-
-
Method Details
-
createTrustStoreFromResource
Creates a default KeyStore from '/resources/certs' of Clover Device CA Certificates- Parameters:
afterLoaded- listener for when certs are loaded
-
createTrustStoreFromNetwork
Creates a default KeyStore from 'https://www.clover.com' of Clover Device CA Certificates- Parameters:
afterLoaded- listener for when certs are loaded
-
createSecureURI
Creates a URI for a secure websocket connection to a Clover Device- Parameters:
ipAddress- IP Address of Clover Deviceport- Port Number of Clover Device- Returns:
- a URI for secure connection to Clover Device
-
createNonsecureURI
Creates a URI for a non-secure websocket connection to a Clover Device- Parameters:
ipAddress- IP Address of Clover Deviceport- Port Number of Clover Device- Returns:
- a URI for non-secure connection to Clover Device
-