Class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
- java.lang.Object
-
- org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.Authenticator
- Direct Known Subclasses:
RemoteUserAuthenticatorFactory.RemoteUserAuthenticator
- Enclosing class:
- BasicHttpAuthenticatorFactory
public class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator extends Object implements org.springframework.extensions.webscripts.Authenticator
HTTP Basic Authentication- Author:
- davidc
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringauthorizationprotected AuthenticationListenerlistenerprotected org.springframework.extensions.webscripts.servlet.WebScriptServletRequestservletReqprotected org.springframework.extensions.webscripts.servlet.WebScriptServletResponseservletResprotected Stringticket
-
Constructor Summary
Constructors Constructor Description BasicHttpAuthenticator(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res, AuthenticationListener listener)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(org.springframework.extensions.webscripts.Description.RequiredAuthentication required, boolean isGuest)booleanemptyCredentials()protected booleanisBasicAuthHeaderPresentForAdmin()
-
-
-
Field Detail
-
servletReq
protected org.springframework.extensions.webscripts.servlet.WebScriptServletRequest servletReq
-
servletRes
protected org.springframework.extensions.webscripts.servlet.WebScriptServletResponse servletRes
-
authorization
protected String authorization
-
ticket
protected String ticket
-
listener
protected AuthenticationListener listener
-
-
Constructor Detail
-
BasicHttpAuthenticator
public BasicHttpAuthenticator(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res, AuthenticationListener listener)Construct- Parameters:
req- WebScriptServletRequestres- WebScriptServletResponselistener- AuthenticationListener
-
-
Method Detail
-
authenticate
public boolean authenticate(org.springframework.extensions.webscripts.Description.RequiredAuthentication required, boolean isGuest)- Specified by:
authenticatein interfaceorg.springframework.extensions.webscripts.Authenticator
-
emptyCredentials
public boolean emptyCredentials()
- Specified by:
emptyCredentialsin interfaceorg.springframework.extensions.webscripts.Authenticator
-
isBasicAuthHeaderPresentForAdmin
protected boolean isBasicAuthHeaderPresentForAdmin()
-
-