|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.common.atna.ConfigurationManager
public class ConfigurationManager
Thread safe repository of configurations used by the ATNA Agent plugin org.eclipse.ohf.ihe.atna.agent
This class is a singleton, all methods are static methods against the singleton instance.
No user initiated initialization is required.
When the class is loaded, it will examine the System environment looking for the standard SSL/TLS environment variarbles. If present, they will be use to create a default SecurityDomain
setTLSEnabled(boolean) method. Unless set, the default is to allow TLS.
| Method Summary | |
|---|---|
static java.util.Set |
getRegisteredSecurityDomains()
Returns the names of the registered security domains. |
static SecurityDomain |
getSecurityDomain(java.lang.String name)
Returns the security domain with the given name. |
static SecurityDomain |
getSecurityDomain(java.net.URI uri)
Returns the SecurityDomain object registered as associated with the URI. |
static boolean |
isNonTLSConnectionsPermitted()
Global setting which overrides the ability for protocols like mllp and http to make unsecure connections. |
static boolean |
isTLSEnabled()
Get the value of the global override for TLS use. |
static void |
registerDefaultSecurityDomain(SecurityDomain securityDomain)
Registers the properies file to be used as the default security domain. |
static void |
registerSecurityDomain(SecurityDomain securityDomain)
Registers the SecurityDomain object with the ConfigurationManager. |
static void |
registerURItoSecurityDomain(java.net.URI uri,
java.lang.String name)
Registers the association of the given URI to the named security domain. |
static void |
setNonTLSConnectionsPermitted(boolean nonTLSConnectionsPermitted)
Global setting which overrides the ability for protocols like mllp and http to make unsecure connections. |
static void |
setTLSEnabled(boolean enabletls)
Global setting which overrides the behaviour of the use of TLS in network communications. |
static void |
unregisterURItoSecurityDomain(java.net.URI uri)
Removes the URI from registered set of URI's |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerSecurityDomain(SecurityDomain securityDomain)
About the Security Domain name
The security domain name SecurityDomain#getName() is used as a key by subsequent calls such as {@link #registerURItoSecurityDomain(URI, String)}
to associate the security properties registered here.
securityDomain - domain to add to the configuration managerpublic static void registerDefaultSecurityDomain(SecurityDomain securityDomain)
SecurityDomain.getName() method.
About the Security Domain name
The security domain name is used as a key by subsequent calls such as registerURItoSecurityDomain(URI, String)
to associate the security properties registered here.
properties -
public static void registerURItoSecurityDomain(java.net.URI uri,
java.lang.String name)
throws NoSecurityDomainException
uri - URI to register, may not be nullname - of SecurityDomain to associate
{@link - IllegalArgumentException If the specified domain doesn't exist, or if the URI is null
NoSecurityDomainExceptionpublic static void unregisterURItoSecurityDomain(java.net.URI uri)
uri - public static SecurityDomain getSecurityDomain(java.lang.String name)
name -
public static SecurityDomain getSecurityDomain(java.net.URI uri) throws NoSecurityDomainException
uri -
NoSecurityDomainException - if no security name has been associated with the URIpublic static java.util.Set getRegisteredSecurityDomains()
public static boolean isTLSEnabled()
setTLSEnabled(boolean)
public static void setTLSEnabled(boolean enabletls)
enabletls - - true = (default) tls enabled, false = TLS WILL BE DISABLED for all connectionspublic static boolean isNonTLSConnectionsPermitted()
public static void setNonTLSConnectionsPermitted(boolean nonTLSConnectionsPermitted)
nonTLSConnectionsPermitted -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||