Class NonValidatingFactory


  • public class NonValidatingFactory
    extends WrappedFactory
    Provide a SSLSocketFactory that allows SSL connections to be made without validating the server's certificate. This is more convenient for some applications, but is less secure as it allows "man in the middle" attacks.
    • Constructor Summary

      Constructors 
      Constructor Description
      NonValidatingFactory​(java.lang.String arg)
      We provide a constructor that takes an unused argument solely because the ssl calling code will look for this constructor first and then fall back to the no argument constructor, so we avoid an exception and additional reflection lookups.
    • Constructor Detail

      • NonValidatingFactory

        public NonValidatingFactory​(java.lang.String arg)
                             throws java.security.GeneralSecurityException
        We provide a constructor that takes an unused argument solely because the ssl calling code will look for this constructor first and then fall back to the no argument constructor, so we avoid an exception and additional reflection lookups.
        Parameters:
        arg - input argument
        Throws:
        java.security.GeneralSecurityException - if something goes wrong