Class SSLValidationManager


  • public class SSLValidationManager
    extends java.lang.Object
    The SSL validation manager makes it possible to enable or disable SSL validation.

    Note that the SSL validation should only disabled for testing in dev/staging/qa environments where no properly signed certificates exist, and/or for internal systems communicating with other internal systems. It is strongly suggested to enable SSL validation in production environments.

    • Constructor Summary

      Constructors 
      Constructor Description
      SSLValidationManager​(boolean isSSLValidationEnabled)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disableSSLValidation()
      Disables SSL certificate validation.
      • Methods inherited from class java.lang.Object

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

      • SSLValidationManager

        public SSLValidationManager​(boolean isSSLValidationEnabled)
        Constructor.
        Parameters:
        isSSLValidationEnabled - true to enable SSL validation, false otherwise
    • Method Detail

      • disableSSLValidation

        @PostConstruct
        public void disableSSLValidation()
                                  throws java.lang.Exception
        Disables SSL certificate validation.
        Throws:
        java.lang.Exception - if an error occurs while disabling SSL validation