Class LoginConfig
java.lang.Object
org.apache.tomcat.util.descriptor.web.XmlEncodingBase
org.apache.tomcat.util.descriptor.web.LoginConfig
- All Implemented Interfaces:
Serializable
Representation of a login configuration element for a web application, as represented in a
<login-config> element in the deployment descriptor.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new LoginConfig with default properties.LoginConfig(String authMethod, String realmName, String loginPage, String errorPage) Construct a new LoginConfig with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the authentication method.Get the error page URI.Get the login page URI.Get the realm name.inthashCode()voidsetAuthMethod(String authMethod) Set the authentication method.voidsetErrorPage(String errorPage) Set the error page URI.voidsetErrorPageDecoded(String errorPage) Set the already decoded error page URI.voidsetLoginPage(String loginPage) Set the login page URI.voidsetLoginPageDecoded(String loginPage) Set the already decoded login page URI.voidsetRealmName(String realmName) Set the realm name.toString()Return a String representation of this object.Methods inherited from class XmlEncodingBase
getCharset, setCharset
-
Constructor Details
-
LoginConfig
public LoginConfig()Construct a new LoginConfig with default properties. -
LoginConfig
-
-
Method Details
-
getAuthMethod
-
setAuthMethod
Set the authentication method.- Parameters:
authMethod- the authMethod to set
-
getErrorPage
-
setErrorPage
Set the error page URI.- Parameters:
errorPage- the errorPage to set
-
setErrorPageDecoded
Set the already decoded error page URI.- Parameters:
errorPage- the decoded errorPage to set
-
getLoginPage
-
setLoginPage
Set the login page URI.- Parameters:
loginPage- the loginPage to set
-
setLoginPageDecoded
Set the already decoded login page URI.- Parameters:
loginPage- the decoded loginPage to set
-
getRealmName
-
setRealmName
Set the realm name.- Parameters:
realmName- the realmName to set
-
toString
-
hashCode
-
equals
-