Class SSLHelper


  • public class SSLHelper
    extends Object
    A helper class for SSL.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • SSLHelper

        public SSLHelper()
    • Method Detail

      • getProperties

        public static Properties getProperties()
        Returns the underlying properties.
        Returns:
        the properties
      • writeProperties

        public static boolean writeProperties()
        Writes the specified properties to disk.
        Returns:
        true if successfully stored
      • writeProperties

        public static boolean writeProperties​(Properties props)
        Writes the specified properties to disk.
        Parameters:
        props - the properties to write to disk
        Returns:
        true if successfully stored
      • getHostnameVerifier

        public static HostnameVerifier getHostnameVerifier()
        Returns the hostname verifier.
        Returns:
        the verifier
      • getTrustManager

        public static X509TrustManager getTrustManager()
        Returns the trust manager.
        Returns:
        the trust manager
      • initialize

        public static boolean initialize()
        Initializes the SSL context.
        Returns:
        true if successfully initialized