java.lang.Object | |
↳ | com.microstrategy.utils.certificate.SSLClientHelper |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | SSLClientHelper.Callback |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SSLClientHelper(String serverFQDN, int serverPort, SSLClientHelper.Callback callback) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clientConnectToServer()
Helper method to determine whether a secure connection can be made to a server
at a specified port.
| ||||||||||
static void |
setKeystoreDetails(String absPathToKeystore, char[] ksPassword)
Sets the details about the client key store to be used.
| ||||||||||
static void |
setTruststoreDetails(String absPathToTruststore, char[] tsPassword)
Sets the details about the trust store to be used.
| ||||||||||
static boolean |
validatePath()
Checks if the path provided to the SSLClientHelper is valid.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Helper method to determine whether a secure connection can be made to a server at a specified port. Connection details are provided during instantiation. Note that this method does not automatically connect to the server. It requires a callback instance to report success or failure.
Sets the details about the client key store to be used. Note that the password array will be cleared before this method returns.
absPathToKeystore | Absolute path to the key store file |
---|---|
ksPassword | Key store password as char array. Will be cleared before this method returns |
IllegalArgumentException | if the key store path is null or empty |
---|---|
EncryptedObjectException | if the EncryptedObject for the password encounters some problem |
Sets the details about the trust store to be used.
absPathToTruststore | Absolute path to the trust store file |
---|---|
tsPassword | Trust store password as char array. |
IllegalArgumentException | if the trust store path is null or empty |
---|---|
EncryptedObjectException | if the EncryptedObject for the password encounters some problem |
Checks if the path provided to the SSLClientHelper is valid. The path will contain a truststore, but the trust store does not need to exist. the following conditions must be met 1. The absolute path containing a file(truststore) is valid and the file exists 2. If the file already exists, then the application needs write permissions to it 3. If the file does not exist, then the parent needs to be a valid directory and the application needs write permission to it
IOException |
---|