public class NodeAuthModuleContext extends AbstractModuleContext
config, securityContext| Modifier | Constructor and Description |
|---|---|
protected |
NodeAuthModuleContext()
Default constructor using a blank (default-initialized) configuration
|
| Modifier and Type | Method and Description |
|---|---|
NodeAuthModuleConfig |
getConfig() |
static NodeAuthModuleContext |
getContext()
Returns the current singleton instance of the Node Authentication Module Context from the
ThreadLocal cache.
|
String |
getContextId() |
SecurityDomainManager |
getSecurityDomainManager()
Gets the security domain manager that stores and associates domain
configurations to fixed URLs.
|
SocketHandler |
getSocketHandler()
Gets the socket creation handler set in this context for creating
secure and non-secured sockets
|
boolean |
isNonTLSConnectionsPermitted()
Returns if non-TLS connections can be created.
|
boolean |
isTLSEnabled()
Returns if TLS connections are currently allowed
|
void |
setNonTLSConnectionsPermitted(boolean enableNonTLS)
Sets if non-TLS connections are permitted
|
void |
setTLSEnabled(boolean enableTLS)
Sets if TLS connections are currently allowed
|
getSecurityContextprotected NodeAuthModuleContext()
public static NodeAuthModuleContext getContext()
public NodeAuthModuleConfig getConfig()
getConfig in class AbstractModuleContextpublic String getContextId()
getContextId in class AbstractModuleContextpublic final SocketHandler getSocketHandler()
public final SecurityDomainManager getSecurityDomainManager()
public void setTLSEnabled(boolean enableTLS)
enableTLS - Allow TLS connections (true) or not (false)public boolean isTLSEnabled()
public void setNonTLSConnectionsPermitted(boolean enableNonTLS)
enableNonTLS - Allow non-TLS connections (true) or not (false)public boolean isNonTLSConnectionsPermitted()
Copyright © 2016 Open eHealth Foundation. All rights reserved.