APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.security.auth.login

public Class AppConfigurationEntry

extends Object
Class Inheritance
Imports
java.util.Map, .Collections

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.
Since
1.4
See Also
javax.security.auth.login.Configuration

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AppConfigurationEntry.LoginModuleControlFlag

This class represents whether a LoginModule is REQUIRED, REQUISITE, SUFFICIENT or OPTIONAL.

Field Summary

Modifier and TypeField and Description
private final AppConfigurationEntry.LoginModuleControlFlag
private final String
private final Map<String, ?>

Constructor Summary

AccessConstructor and Description
public
AppConfigurationEntry(String
String representing the class name of the LoginModule configured for the specified application.
loginModuleName
,
AppConfigurationEntry.LoginModuleControlFlag
either REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL.
controlFlag
,
Map<String, ?>
the options configured for this LoginModule.
options
)

Default constructor for this class.

Method Summary

Modifier and TypeMethod and Description
public AppConfigurationEntry.LoginModuleControlFlag

Returns:

the controlFlag (either REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL) for this LoginModule.
getControlFlag
()

Return the controlFlag (either REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL) for this LoginModule.

public String

Returns:

the class name of the configured LoginModule as a String.
getLoginModuleName
()

Get the class name of the configured LoginModule.

public Map<String, ?>

Returns:

the options configured for this LoginModule as an unmodifiable Map.
getOptions
()

Get the options configured for this LoginModule.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlFlagback to summary
private final AppConfigurationEntry.LoginModuleControlFlag controlFlag
loginModuleNameback to summary
private final String loginModuleName
optionsback to summary
private final Map<String, ?> options

Constructor Detail

AppConfigurationEntryback to summary
public AppConfigurationEntry(String loginModuleName, AppConfigurationEntry.LoginModuleControlFlag controlFlag, Map<String, ?> 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.

Parameters
loginModuleName:String

String representing the class name of the LoginModule configured for the specified application.

controlFlag:AppConfigurationEntry.LoginModuleControlFlag

either REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL.

options:Map<String, ?>

the options configured for this LoginModule.

Exceptions
IllegalArgumentException:
if loginModuleName is null, if LoginModuleName has a length of 0, if controlFlag is not either REQUIRED, REQUISITE, SUFFICIENT or OPTIONAL, or if options is null.

Method Detail

getControlFlagback to summary
public AppConfigurationEntry.LoginModuleControlFlag getControlFlag()

Return the controlFlag (either REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL) for this LoginModule.

Returns:AppConfigurationEntry.LoginModuleControlFlag

the controlFlag (either REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL) for this LoginModule.

getLoginModuleNameback to summary
public String getLoginModuleName()

Get the class name of the configured LoginModule.

Returns:String

the class name of the configured LoginModule as a String.

getOptionsback to summary
public Map<String, ?> getOptions()

Get the options configured for this LoginModule.

Returns:Map<String, ?>

the options configured for this LoginModule as an unmodifiable Map.

javax.security.auth.login back to summary

public Class AppConfigurationEntry.LoginModuleControlFlag

extends Object
Class Inheritance
  • java.lang.Object
  • javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag

This class represents whether a LoginModule is REQUIRED, REQUISITE, SUFFICIENT or OPTIONAL.

Field Summary

Modifier and TypeField and Description
private final String
public static final AppConfigurationEntry.LoginModuleControlFlag
OPTIONAL

Optional LoginModule.

public static final AppConfigurationEntry.LoginModuleControlFlag
REQUIRED

Required LoginModule.

public static final AppConfigurationEntry.LoginModuleControlFlag
REQUISITE

Requisite LoginModule.

public static final AppConfigurationEntry.LoginModuleControlFlag
SUFFICIENT

Sufficient LoginModule.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a String representation of this controlFlag.
toString
()

Overrides java.lang.Object.toString.

Return a String representation of this controlFlag.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

controlFlagback to summary
private final String controlFlag
OPTIONALback to summary
public static final AppConfigurationEntry.LoginModuleControlFlag OPTIONAL

Optional LoginModule.

REQUIREDback to summary
public static final AppConfigurationEntry.LoginModuleControlFlag REQUIRED

Required LoginModule.

REQUISITEback to summary
public static final AppConfigurationEntry.LoginModuleControlFlag REQUISITE

Requisite LoginModule.

SUFFICIENTback to summary
public static final AppConfigurationEntry.LoginModuleControlFlag SUFFICIENT

Sufficient LoginModule.

Constructor Detail

LoginModuleControlFlagback to summary
private LoginModuleControlFlag(String controlFlag)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a String representation of this controlFlag.

The String has the format, "LoginModuleControlFlag: flag", where flag is either required, requisite, sufficient, or optional.

Returns:String

a String representation of this controlFlag.