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 org.apache.tomcat.util.descriptor.web.XmlEncodingBase
getCharset, setCharset
-
Constructor Details
-
LoginConfig
public LoginConfig()Construct a new LoginConfig with default properties. -
LoginConfig
Construct a new LoginConfig with the specified properties.- Parameters:
authMethod- The authentication methodrealmName- The realm nameloginPage- The login page URIerrorPage- The error page URI
-
-
Method Details
-
getAuthMethod
Get the authentication method.- Returns:
- the authMethod
-
setAuthMethod
Set the authentication method.- Parameters:
authMethod- the authMethod to set
-
getErrorPage
Get the error page URI.- Returns:
- the errorPage
-
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
Get the login page URI.- Returns:
- the loginPage
-
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
Get the realm name.- Returns:
- the realmName
-
setRealmName
Set the realm name.- Parameters:
realmName- the realmName to set
-
toString
Return a String representation of this object. -
hashCode
public int hashCode() -
equals
-