java.lang.Object
com.github.hypfvieh.util.SslTlsUtil
Helper class to setup SSL/TLS related settings.
- Seit:
- 2016-10-14
- Autor:
- hypfvieh
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringgetStoreTypeByFileName(File _file) Get the key/trust store 'type' by analyzing the filename extension.static KeyManager[]initializeKeyManagers(File _keyStoreFile, String _keyStorePassword, String _keyPassword) Initialization of keyStoreManager used to provide access to the configured keyStore.static TrustManager[]initializeTrustManagers(File _trustStoreFile, String _trustStorePassword) Initialization of trustStoreManager used to provide access to the configured trustStore.
-
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
Get the key/trust store 'type' by analyzing the filename extension.- Parameter:
_file- file- Gibt zurück:
- store type as string, defaults to JKS
-