java.lang.Object
is.codion.common.rmi.client.Clients
Utility methods for remote clients
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The system property key for specifying a ssl truststorestatic final String
The system property key for specifying a ssl truststore passwordstatic final PropertyValue<String>
The host on which to locate the server
Value type: String
Default value: localhoststatic final PropertyValue<String>
The rmi ssl truststore to use
Value type: String Default value: nullstatic final PropertyValue<String>
The rmi ssl truststore password to use
Value type: String Default value: null -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Reads the trust store and password specified by the 'codion.client.trustStore' and 'codion.client.trustStorePassword' system properties and if a truststore is specified, either in the filesystem or on the classpath, combines it with the default system truststore, writes the combined truststore to a temporary file and sets 'javax.net.ssl.trustStore' so that it points to that file and 'javax.net.ssl.trustStorePassword' to the given password.
-
Field Details
-
JAVAX_NET_TRUSTSTORE
The system property key for specifying a ssl truststore- See Also:
-
JAVAX_NET_TRUSTSTORE_PASSWORD
The system property key for specifying a ssl truststore password- See Also:
-
TRUSTSTORE
The rmi ssl truststore to use
Value type: String Default value: null -
TRUSTSTORE_PASSWORD
The rmi ssl truststore password to use
Value type: String Default value: null -
SERVER_HOSTNAME
The host on which to locate the server
Value type: String
Default value: localhost
-
-
Method Details
-
resolveTrustStore
public static void resolveTrustStore()Reads the trust store and password specified by the 'codion.client.trustStore' and 'codion.client.trustStorePassword' system properties and if a truststore is specified, either in the filesystem or on the classpath, combines it with the default system truststore, writes the combined truststore to a temporary file and sets 'javax.net.ssl.trustStore' so that it points to that file and 'javax.net.ssl.trustStorePassword' to the given password. If no password is provided, the default 'changeit' password is used. If no truststore is specified or the file is not found, this method has no effect.- Throws:
IllegalArgumentException
- in case a truststore is specified but no password- See Also:
-