AppConfigurationEntrypublic class AppConfigurationEntry extends Object This class represents a single LoginModule entry
configured for the application specified in the
getAppConfigurationEntry(String appName)
method in the Configuration class. Each respective
AppConfigurationEntry contains a LoginModule name,
a control flag (specifying whether this LoginModule is
REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL), and LoginModule-specific
options. Please refer to the Configuration class for
more information on the different control flags and their semantics. |
Fields Summary |
---|
private String | loginModuleName | private LoginModuleControlFlag | controlFlag | private Map | options |
Constructors Summary |
---|
public AppConfigurationEntry(String loginModuleName, LoginModuleControlFlag controlFlag, Map options)Default constructor for this class.
This entry represents a single LoginModule
entry configured for the application specified in the
getAppConfigurationEntry(String appName)
method from the Configuration class.
if (loginModuleName == null || loginModuleName.length() == 0 ||
(controlFlag != LoginModuleControlFlag.REQUIRED &&
controlFlag != LoginModuleControlFlag.REQUISITE &&
controlFlag != LoginModuleControlFlag.SUFFICIENT &&
controlFlag != LoginModuleControlFlag.OPTIONAL) ||
options == null)
throw new IllegalArgumentException();
this.loginModuleName = loginModuleName;
this.controlFlag = controlFlag;
this.options = Collections.unmodifiableMap(options);
|
|