Class EncryptionModeConfigurationSSL

  • All Implemented Interfaces:
    EncryptionModeConfiguration

    public class EncryptionModeConfigurationSSL
    extends java.lang.Object
    implements EncryptionModeConfiguration
    Configuration parameters governing SSL communication with the Intelligence Server. Note that if new actions are added to this class, and they require new sockets to be created, clear() should be invoked.
    See Also:
    TLSHelper
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getSSLProtocol()  
      void setKeystore​(java.lang.String keystorePath, char[] pwd)
      Sets key store for client certificates (mutual authentication).
      static void setSSLProtocol​(java.lang.String protocol)
      Sets the protocol to be used by SSLContext.
      void setTruststore​(java.lang.String truststorePath, char[] pwd)
      The truststore contains public certificates of Intelligence Servers we intend to connect to.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setTruststore

        public void setTruststore​(java.lang.String truststorePath,
                                  char[] pwd)
                           throws MSTRWebAPIException

        The truststore contains public certificates of Intelligence Servers we intend to connect to. If not explicitly set, the default JVM truststore will be used. This is required if the Intelligence Server SSL is configured with self-signed certificates, i.e. not issued by root CAs recognized by the JVM.

        Throws:
        MSTRWebAPIException
      • setKeystore

        public void setKeystore​(java.lang.String keystorePath,
                                char[] pwd)
                         throws MSTRWebAPIException
        Sets key store for client certificates (mutual authentication).
        Throws:
        MSTRWebAPIException - if an error occurs while configuring the key store
      • setSSLProtocol

        public static void setSSLProtocol​(java.lang.String protocol)
                                   throws java.security.NoSuchAlgorithmException
        Sets the protocol to be used by SSLContext. This will only affect new contexts and sockets - existing ones will continue using the previous protocol.
        Parameters:
        protocol - for options see Java Cryptography Architecture Standard Algorithm Name Documentation
        Throws:
        java.security.NoSuchAlgorithmException