public class SSLService extends AbstractContexed implements Contexed, ConfigServiceListener, AppContextService<SSLService>
SSLContext
objects configured from
the AppContext
Once created theModifier 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, resetLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
public static final Feature INSTALL_DEFAULT_FEATURE
public static final java.lang.String DEFAULT
public SSLService(AppContext conn)
public void cleanup()
AppContextCleanup
AppContext
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 AppContextCleanup
public javax.net.ssl.SSLContext getSSLContext(java.lang.String protocol, java.lang.String tag) throws java.lang.Exception
protocol
- Type of SSLContexttag
- config tagjava.lang.Exception
public javax.net.ssl.SSLContext makeDefaultContext() throws java.lang.Exception
java.lang.Exception
public 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()
AppContextService
getType
in interface AppContextService<SSLService>
public void resetConfig()
resetConfig
in interface ConfigServiceListener
protected javax.net.ssl.TrustManager[] getTrustManagers(java.lang.String tag) throws java.lang.Exception
java.lang.Exception