Package org.wildfly.naming.client.util
Class EnvironmentUtils
java.lang.Object
org.wildfly.naming.client.util.EnvironmentUtils
Various utilities dealing with environment properties.
- Author:
- David M. Lloyd
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcompileURLPackagePrefixes(Collection<String> prefixes) Compile the given collection of URL package prefixes into a string.static IdentityCredentialsgetSecurityCredentials(Map<String, ?> env) Get the security credential, if any.static IdentityCredentialsgetSecurityCredentials(Map<String, ?> env, String propertyName) Get the security credential, if any.static StringgetSecurityRealmName(Map<String, ?> env) Get the name of the security realm, if any.getURLPackagePrefixes(Map<String, ?> env) Get the URL package prefixes defined in the given property name.getURLPackagePrefixes(Map<String, ?> env, String propertyName) Get the URL package prefixes defined in the given property name.
-
Field Details
-
EJB_REMOTE_CONNECTIONS
- See Also:
-
EJB_REMOTE_CONNECTION_PREFIX
- See Also:
-
EJB_REMOTE_CONNECTION_PROVIDER_PREFIX
- See Also:
-
CONNECT_OPTIONS
- See Also:
-
EJB_HOST_KEY
- See Also:
-
EJB_PORT_KEY
- See Also:
-
EJB_CALLBACK_HANDLER_CLASS_KEY
- See Also:
-
EJB_USERNAME_KEY
- See Also:
-
EJB_PASSWORD_KEY
- See Also:
-
EJB_PASSWORD_BASE64_KEY
- See Also:
-
-
Method Details
-
getSecurityCredentials
Get the security credential, if any. If an entry is present but not recognized, an empty credential set is returned.- Parameters:
env- the environment (must not benull)- Returns:
- the security credentials, or
nullif none was present
-
getSecurityCredentials
Get the security credential, if any. If an entry is present but not recognized, an empty credential set is returned.- Parameters:
env- the environment (must not benull)propertyName- the property name (must not benull)- Returns:
- the security credentials, or
nullif none was present
-
getSecurityRealmName
Get the name of the security realm, if any.- Returns:
- the name of the security realm, or
nullif there is none or it is in an unrecognized format
-
getURLPackagePrefixes
Get the URL package prefixes defined in the given property name. If no URL package prefixes are defined in the given property name, then the default list is returned. The returned list is mutable.- Parameters:
env- the environment (must not benull)- Returns:
- the list of package prefixes
-
getURLPackagePrefixes
Get the URL package prefixes defined in the given property name. If no URL package prefixes are defined in the given property name, then the default list is returned. The returned list is mutable.- Parameters:
env- the environment (must not benull)propertyName- the property name to search (must not benull)- Returns:
- the list of package prefixes
-
compileURLPackagePrefixes
Compile the given collection of URL package prefixes into a string.- Parameters:
prefixes- the package prefixes (must not benull)- Returns:
- the string, or
nullif there are no package prefixes (i.e. the corresponding property can be removed)
-