Package com.sas.services.util
Class JAASUtil
java.lang.Object
com.sas.services.util.JAASUtil
public class JAASUtil
extends Object
This class implements convenience methods to extract information from
the JAAS configuration in the platform services environment. This
does not make available any data that is not already available to the
client by another means.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetJAASOption(Environment environment, String loginConfigAppName, String optionName) Return the first value for an option in the JAAS configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JAASUtil
public JAASUtil()
-
-
Method Details
-
getJAASOption
public static String getJAASOption(Environment environment, String loginConfigAppName, String optionName) Return the first value for an option in the JAAS configuration. The Platform Service Environment can be retrieved from the UserService using the getServiceConfiguration().getEnvironment() calls. The loginConfigApp name specifies which application configuration to use. The platform typically uses the "PFS" configuration.- Parameters:
environment- The Platform Services environment. Retrieved from the UserService.getServiceConfiguration().getEnvironment() sequence of calls.loginConfigAppName- The name of the application configuration to use. An environment can contain multiple configurations. Typically, the platform uses the "PFS" configuration.optionName- The name of the option to retrieve the value for.- Returns:
- The value for the desired option, or null if no module in the configuration defines the option.
-