Klasse SslTlsUtil

java.lang.Object
com.github.hypfvieh.util.SslTlsUtil

public final class SslTlsUtil extends Object
Helper class to setup SSL/TLS related settings.
Seit:
2016-10-14
Autor:
hypfvieh
  • Methodendetails

    • initializeTrustManagers

      public static TrustManager[] initializeTrustManagers(File _trustStoreFile, String _trustStorePassword) throws IOException
      Initialization of trustStoreManager used to provide access to the configured trustStore.
      Parameter:
      _trustStoreFile - trust store file
      _trustStorePassword - trust store password
      Gibt zurück:
      TrustManager array or null
      Löst aus:
      IOException - on error
    • initializeKeyManagers

      public static KeyManager[] initializeKeyManagers(File _keyStoreFile, String _keyStorePassword, String _keyPassword) throws IOException
      Initialization of keyStoreManager used to provide access to the configured keyStore.
      Parameter:
      _keyStoreFile - key store file
      _keyStorePassword - key store password
      _keyPassword - key password
      Gibt zurück:
      KeyManager array or null
      Löst aus:
      IOException - on error
    • getStoreTypeByFileName

      public static String getStoreTypeByFileName(File _file)
      Get the key/trust store 'type' by analyzing the filename extension.
      Parameter:
      _file - file
      Gibt zurück:
      store type as string, defaults to JKS