Class LoginConfigurationImpl
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- org.glassfish.web.deployment.descriptor.LoginConfigurationImpl
-
- All Implemented Interfaces:
LoginConfiguration,Serializable
public class LoginConfigurationImpl extends Descriptor implements LoginConfiguration
I dictate how the web app I belong to should be logged into.- Author:
- Danny Coward
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHENTICATION_METHOD_BASICteh client authenticates using http basic authentication.static StringAUTHENTICATION_METHOD_CLIENT_CERTIFICATEThe client sends a certificate.static StringAUTHENTICATION_METHOD_DIGESTDigest authentication.static StringAUTHENTICATION_METHOD_FORMFOrm authentication.-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
Fields inherited from interface com.sun.enterprise.deployment.web.LoginConfiguration
BASIC_AUTHENTICATION, CLIENT_CERTIFICATION_AUTHENTICATION, DIGEST_AUTHENTICATION, FORM_AUTHENTICATION
-
-
Constructor Summary
Constructors Constructor Description LoginConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAuthenticationMethod()Return my authentication method.StringgetFormErrorPage()Get the name of the error page for form login.StringgetFormLoginPage()Get the name of the login page for form login.StringgetRealmName()Obtain the realm the server should use for basic authentication.inthashCode()voidprint(StringBuilder toStringBuilder)My representation as a formatted String.voidsetAuthenticationMethod(String authenticationMethod)Sets my authentication method.voidsetFormErrorPage(String formErrorPage)Set the name of the error page for form login.voidsetFormLoginPage(String formLoginPage)Set the name of the login page for form login.voidsetRealmName(String realmName)Set the realm the server should use for basic authentication.-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
-
Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Field Detail
-
AUTHENTICATION_METHOD_BASIC
public static final String AUTHENTICATION_METHOD_BASIC
teh client authenticates using http basic authentication.- See Also:
- Constant Field Values
-
AUTHENTICATION_METHOD_DIGEST
public static final String AUTHENTICATION_METHOD_DIGEST
Digest authentication.- See Also:
- Constant Field Values
-
AUTHENTICATION_METHOD_FORM
public static final String AUTHENTICATION_METHOD_FORM
FOrm authentication.- See Also:
- Constant Field Values
-
AUTHENTICATION_METHOD_CLIENT_CERTIFICATE
public static final String AUTHENTICATION_METHOD_CLIENT_CERTIFICATE
The client sends a certificate.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAuthenticationMethod
public String getAuthenticationMethod()
Return my authentication method.- Specified by:
getAuthenticationMethodin interfaceLoginConfiguration
-
setAuthenticationMethod
public void setAuthenticationMethod(String authenticationMethod)
Sets my authentication method.- Specified by:
setAuthenticationMethodin interfaceLoginConfiguration
-
getRealmName
public String getRealmName()
Obtain the realm the server should use for basic authentication.- Specified by:
getRealmNamein interfaceLoginConfiguration
-
setRealmName
public void setRealmName(String realmName)
Set the realm the server should use for basic authentication.- Specified by:
setRealmNamein interfaceLoginConfiguration
-
getFormLoginPage
public String getFormLoginPage()
Get the name of the login page for form login.- Specified by:
getFormLoginPagein interfaceLoginConfiguration
-
setFormLoginPage
public void setFormLoginPage(String formLoginPage)
Set the name of the login page for form login.- Specified by:
setFormLoginPagein interfaceLoginConfiguration
-
getFormErrorPage
public String getFormErrorPage()
Get the name of the error page for form login.- Specified by:
getFormErrorPagein interfaceLoginConfiguration
-
setFormErrorPage
public void setFormErrorPage(String formErrorPage)
Set the name of the error page for form login.- Specified by:
setFormErrorPagein interfaceLoginConfiguration
-
print
public void print(StringBuilder toStringBuilder)
My representation as a formatted String.- Overrides:
printin classDescriptor
-
-