SSLContext.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final SSLContextConfigurator | DEFAULT_CONFIG
Default SSL configuration. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private String | |
| private char[] | |
| private byte[] | |
| private String | |
| private char[] | |
| private String | |
| private String | |
| private static final Logger | LOGGER
Default Logger. |
| private String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private String | |
| private byte[] | |
| private String | |
| private char[] | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SSLContextConfigurator(boolean
If readSystemProperties)true populates configuration from System#getProperties(), else
you have empty configuration.Constructor that allows you creating empty configuration. |
| Modifier and Type | Method and Description |
|---|---|
| public SSLContext | Returns: a newSSLContext
Deprecated
Use
createSSLContext(boolean).
Create a new |
| public SSLContext | Returns: a newSSLContexttrue if an exception should be raised upon failure.Create a new |
| private static void | |
| public void | |
| public void | setKeyManagerFactoryAlgorithm(String
the key manager factory algorithm. keyManagerFactoryAlgorithm)Sets the key manager factory algorithm. |
| public void | |
| public void | |
| public void | |
| public void | setKeyStoreFile(String
File name of key store. keyStoreFile)Sets key store file name, also makes sure that if other key store configuration parameters are not set to set them to default values. |
| public void | |
| public void | |
| public void | setKeyStoreProvider(String
Key store provider to set. keyStoreProvider)Sets the key store provider name. |
| public void | |
| public void | setSecurityProtocol(String
Protocol for securityProtocol)javax..Sets the SSLContext protocol. |
| public void | setTrustManagerFactoryAlgorithm(String
the trust manager factory algorithm. trustManagerFactoryAlgorithm)Sets the trust manager factory algorithm. |
| public void | setTrustStoreBytes(byte[]
trust store payload. trustStoreBytes)Sets trust store payload as byte array. |
| public void | setTrustStoreFile(String
File name of trust store. trustStoreFile)Sets trust store file name, also makes sure that if other trust store configuration parameters are not set to set them to default values. |
| public void | |
| public void | setTrustStoreProvider(String
Trust store provider to set. trustStoreProvider)Sets the trust store provider name. |
| public void | |
| public boolean | Returns: true if configuration is valid, else false.
Deprecated
Use
createSSLContext(boolean).
Validates |
| public boolean | Returns: true if configuration is valid, else false.forces failure if no keystore is specified. needsKeyStore)
Deprecated
Use
createSSLContext(boolean).
Validates |
| DEFAULT_CONFIG | back to summary |
|---|---|
| public static final SSLContextConfigurator DEFAULT_CONFIG Default SSL configuration. If you have changed any of | |
| KEY_FACTORY_MANAGER_ALGORITHM | back to summary |
|---|---|
| public static final String KEY_FACTORY_MANAGER_ALGORITHM | |
| KEY_STORE_FILE | back to summary |
|---|---|
| public static final String KEY_STORE_FILE | |
| KEY_STORE_PASSWORD | back to summary |
|---|---|
| public static final String KEY_STORE_PASSWORD | |
| KEY_STORE_PROVIDER | back to summary |
|---|---|
| public static final String KEY_STORE_PROVIDER | |
| KEY_STORE_TYPE | back to summary |
|---|---|
| public static final String KEY_STORE_TYPE | |
| keyManagerFactoryAlgorithm | back to summary |
|---|---|
| private String keyManagerFactoryAlgorithm | |
| keyPass | back to summary |
|---|---|
| private char[] keyPass | |
| keyStoreBytes | back to summary |
|---|---|
| private byte[] keyStoreBytes | |
| keyStoreFile | back to summary |
|---|---|
| private String keyStoreFile | |
| keyStorePass | back to summary |
|---|---|
| private char[] keyStorePass | |
| keyStoreProvider | back to summary |
|---|---|
| private String keyStoreProvider | |
| keyStoreType | back to summary |
|---|---|
| private String keyStoreType | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Default Logger. | |
| securityProtocol | back to summary |
|---|---|
| private String securityProtocol | |
| TRUST_FACTORY_MANAGER_ALGORITHM | back to summary |
|---|---|
| public static final String TRUST_FACTORY_MANAGER_ALGORITHM | |
| TRUST_STORE_FILE | back to summary |
|---|---|
| public static final String TRUST_STORE_FILE | |
| TRUST_STORE_PASSWORD | back to summary |
|---|---|
| public static final String TRUST_STORE_PASSWORD | |
| TRUST_STORE_PROVIDER | back to summary |
|---|---|
| public static final String TRUST_STORE_PROVIDER | |
| TRUST_STORE_TYPE | back to summary |
|---|---|
| public static final String TRUST_STORE_TYPE | |
| trustManagerFactoryAlgorithm | back to summary |
|---|---|
| private String trustManagerFactoryAlgorithm | |
| trustStoreBytes | back to summary |
|---|---|
| private byte[] trustStoreBytes | |
| trustStoreFile | back to summary |
|---|---|
| private String trustStoreFile | |
| trustStorePass | back to summary |
|---|---|
| private char[] trustStorePass | |
| trustStoreProvider | back to summary |
|---|---|
| private String trustStoreProvider | |
| trustStoreType | back to summary |
|---|---|
| private String trustStoreType | |
| SSLContextConfigurator | back to summary |
|---|---|
| public SSLContextConfigurator() Default constructor. Reads configuration properties from | |
| SSLContextConfigurator | back to summary |
|---|---|
| public SSLContextConfigurator(boolean readSystemProperties) Constructor that allows you creating empty configuration.
| |
| createSSLContext | back to summary |
|---|---|
| public SSLContext createSSLContext()
Deprecated Create a new
| |
| createSSLContext | back to summary |
|---|---|
| public SSLContext createSSLContext(final boolean throwException) Create a new
| |
| loadBytes | back to summary |
|---|---|
| private static void loadBytes(final byte[] bytes, final String storeFile, final char[] password, final KeyStore store) throws IOException, CertificateException, NoSuchAlgorithmException | |
| retrieve | back to summary |
|---|---|
| public void retrieve(Properties props) | |
| setKeyManagerFactoryAlgorithm | back to summary |
|---|---|
| public void setKeyManagerFactoryAlgorithm(String keyManagerFactoryAlgorithm) Sets the key manager factory algorithm.
| |
| setKeyPass | back to summary |
|---|---|
| public void setKeyPass(String keyPass) Password of the key in the key store.
| |
| setKeyPass | back to summary |
|---|---|
| public void setKeyPass(char[] keyPass) Password of the key in the key store.
| |
| setKeyStoreBytes | back to summary |
|---|---|
| public void setKeyStoreBytes(byte[] keyStoreBytes) Sets key store payload as byte array. Method resets key store file if any has been set before via
| |
| setKeyStoreFile | back to summary |
|---|---|
| public void setKeyStoreFile(String keyStoreFile) Sets key store file name, also makes sure that if other key store configuration parameters are not set to set them to
default values. Method resets key store bytes if any have been set before via
| |
| setKeyStorePass | back to summary |
|---|---|
| public void setKeyStorePass(String keyStorePass) Password of key store.
| |
| setKeyStorePass | back to summary |
|---|---|
| public void setKeyStorePass(char[] keyStorePass) Password of key store.
| |
| setKeyStoreProvider | back to summary |
|---|---|
| public void setKeyStoreProvider(String keyStoreProvider) Sets the key store provider name.
| |
| setKeyStoreType | back to summary |
|---|---|
| public void setKeyStoreType(String keyStoreType) Type of key store.
| |
| setSecurityProtocol | back to summary |
|---|---|
| public void setSecurityProtocol(String securityProtocol) Sets the SSLContext protocol. The default value is
| |
| setTrustManagerFactoryAlgorithm | back to summary |
|---|---|
| public void setTrustManagerFactoryAlgorithm(String trustManagerFactoryAlgorithm) Sets the trust manager factory algorithm.
| |
| setTrustStoreBytes | back to summary |
|---|---|
| public void setTrustStoreBytes(byte[] trustStoreBytes) Sets trust store payload as byte array. Method resets trust store file if any has been set before via
| |
| setTrustStoreFile | back to summary |
|---|---|
| public void setTrustStoreFile(String trustStoreFile) Sets trust store file name, also makes sure that if other trust store configuration parameters are not set to set
them to default values. Method resets trust store bytes if any have been set before via
| |
| setTrustStorePass | back to summary |
|---|---|
| public void setTrustStorePass(String trustStorePass) Password of trust store.
| |
| setTrustStoreProvider | back to summary |
|---|---|
| public void setTrustStoreProvider(String trustStoreProvider) Sets the trust store provider name.
| |
| setTrustStoreType | back to summary |
|---|---|
| public void setTrustStoreType(String trustStoreType) Type of trust store.
| |
| validateConfiguration | back to summary |
|---|---|
| public boolean validateConfiguration()
Deprecated Validates
| |
| validateConfiguration | back to summary |
|---|---|
| public boolean validateConfiguration(boolean needsKeyStore)
Deprecated Validates
| |
| Access | Constructor and Description |
|---|---|
| public |
| GenericStoreException | back to summary |
|---|---|
| public GenericStoreException(Throwable cause) | |