public class SSLService extends AbstractContexed implements Contexed, ConfigServiceListener, AppContextService<SSLService>
SSLContext objects configured from
the AppContext
Once created the| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT |
static Feature |
INSTALL_DEFAULT_FEATURE |
conn| Constructor and Description |
|---|
SSLService(AppContext conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
AppContext is being closed. |
static javax.net.ssl.SSLContext |
getCachedDefaultContext()
Get the statically cached
SSLContext
This needs to have been set by a call to makeDefaultContext() |
javax.net.ssl.SSLContext |
getSSLContext(java.lang.String protocol,
java.lang.String tag)
get a SSLContext configured by a string tag.
|
protected javax.net.ssl.TrustManager[] |
getTrustManagers(java.lang.String tag) |
java.lang.Class<? super SSLService> |
getType()
Returns the type of service the class should be registered under.
|
javax.net.ssl.SSLContext |
makeDefaultContext()
Method to get the Default SSLContext.
|
void |
resetConfig() |
getContext, getLogger, resetLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextpublic static final Feature INSTALL_DEFAULT_FEATURE
public static final java.lang.String DEFAULT
public SSLService(AppContext conn)
public void cleanup()
AppContextCleanupAppContext is being closed.
Only use this for cleanup that can't be handled by
normal garbage collection or for state which is never returned by reference.cleanup in interface AppContextCleanuppublic javax.net.ssl.SSLContext getSSLContext(java.lang.String protocol,
java.lang.String tag)
throws java.lang.Exception
protocol - Type of SSLContexttag - config tagjava.lang.Exceptionpublic javax.net.ssl.SSLContext makeDefaultContext()
throws java.lang.Exception
java.lang.Exceptionpublic static javax.net.ssl.SSLContext getCachedDefaultContext()
SSLContext
This needs to have been set by a call to makeDefaultContext()public final java.lang.Class<? super SSLService> getType()
AppContextServicegetType in interface AppContextService<SSLService>public void resetConfig()
resetConfig in interface ConfigServiceListenerprotected javax.net.ssl.TrustManager[] getTrustManagers(java.lang.String tag)
throws java.lang.Exception
java.lang.Exception