|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quickserver.security.SecureStoreManager
Class that loads Key Managers, Trust Managers, SSLContext and other secure objects from QuickServer configuration passed. See <secure-store-manager> in <secure-store> to set new manger to load your SecureStore. This class can be overridden to change the way QuickServer configures the secure mode.
SecureStore
Constructor Summary | |
SecureStoreManager()
|
Method Summary | |
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(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]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SecureStoreManager()
Method Detail |
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
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)
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |