public class SecureStoreManager
extends java.lang.Object
SecureStore
Constructor and Description |
---|
SecureStoreManager() |
Modifier and Type | Method and Description |
---|---|
protected java.security.KeyStore |
getKeyStoreForKey(java.lang.String type,
java.lang.String provider)
Generates a keystore object for the specified keystore type from
the specified provider to be used for loading/storeing keys.
|
protected java.security.KeyStore |
getKeyStoreForTrust(java.lang.String type,
java.lang.String provider)
Generates a keystore object for the specified keystore type from
the specified provider to be used for loading/storing trusted
keys/certificates.
|
javax.net.ssl.SSLSocketFactory |
getSocketFactory(javax.net.ssl.SSLContext context)
Returns a SSLSocketFactory object to be used for creating SSLSockets.
|
javax.net.ssl.SSLContext |
getSSLContext(QuickServerConfig config) |
javax.net.ssl.SSLContext |
getSSLContext(java.lang.String protocol)
Generates a SSLContext object that implements the specified secure
socket protocol.
|
javax.net.ssl.KeyManager[] |
loadKeyManagers(QuickServerConfig config)
Loads KeyManagers.
|
javax.net.ssl.TrustManager[] |
loadTrustManagers(QuickServerConfig config)
Loads TrustManagers.
|
void |
logSSLServerSocketInfo(javax.net.ssl.SSLServerSocket sslServerSocket)
Can be used to log details about the SSLServerSocket used to
create a secure server [SSL/TLS].
|
public javax.net.ssl.KeyManager[] loadKeyManagers(QuickServerConfig config) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException
public javax.net.ssl.TrustManager[] loadTrustManagers(QuickServerConfig config) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException
public javax.net.ssl.SSLContext getSSLContext(java.lang.String protocol) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public javax.net.ssl.SSLContext getSSLContext(QuickServerConfig config) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
protected java.security.KeyStore getKeyStoreForKey(java.lang.String type, java.lang.String provider) throws java.security.KeyStoreException, java.security.NoSuchProviderException
type
- the type of keystoreprovider
- the name of the provider if null
any
provider package that implements this type of key may be given based
on the priority.java.security.KeyStoreException
java.security.NoSuchProviderException
protected java.security.KeyStore getKeyStoreForTrust(java.lang.String type, java.lang.String provider) throws java.security.KeyStoreException, java.security.NoSuchProviderException
type
- the type of keystoreprovider
- the name of the provider if null
any
provider package that implements this type of key may be given based
on the priority.java.security.KeyStoreException
java.security.NoSuchProviderException
public javax.net.ssl.SSLSocketFactory getSocketFactory(javax.net.ssl.SSLContext context)
public void logSSLServerSocketInfo(javax.net.ssl.SSLServerSocket sslServerSocket)
Copyright © 2003-2014 QuickServer.org