public class LoginConfig extends Object
FormLoginConfig form = new FormLoginConfig("login.html", "error.html");
LoginConfig loginConfig = new LoginConfig();
loginConfig.setAuthMethod(AuthMethod.FORM);
loginConfig.setRealmName("userauth");
loginConfig.setFormLoginConfig(form);
SecurityConfig| Constructor and Description |
|---|
LoginConfig() |
LoginConfig(AuthMethod authMethod,
String name) |
| Modifier and Type | Method and Description |
|---|---|
AuthMethod |
getAuthMethod()
Gets the auth method for the context
|
FormLoginConfig |
getFormLoginConfig()
Gets the form login config, or null if
the authentication scheme is not form based login.
|
String |
getRealmName()
Gets the realm name set for the context
|
void |
setAuthMethod(AuthMethod authMethod)
Set the authentication scheme to be used for a given
context
|
void |
setFormLoginConfig(FormLoginConfig flc)
Set the form login configuration, if the authentication
method is form based authentication
|
void |
setRealmName(String realmName)
Sets the realm name to be used for the context
|
String |
toString()
Returns a formatted string of the state.
|
public LoginConfig()
public LoginConfig(AuthMethod authMethod, String name)
public void setAuthMethod(AuthMethod authMethod)
authMethod - one of the supported auth methods as
defined in AuthMethod enumerationpublic AuthMethod getAuthMethod()
public void setRealmName(String realmName)
realmName - the realm name for the contextpublic String getRealmName()
public void setFormLoginConfig(FormLoginConfig flc)
flc - form login configurationFormLoginConfigpublic FormLoginConfig getFormLoginConfig()
FormLoginConfigCopyright © 2019. All rights reserved.