com.dyuproject.web.auth
Class BasicAuthentication
java.lang.Object
com.dyuproject.web.auth.Authentication
com.dyuproject.web.auth.BasicAuthentication
public class BasicAuthentication
- extends Authentication
Web authorization using BASIC;
Use only if in secure https mode because the user/pass is passed in clear test.
- Author:
- David Yu
- Date created:
- Jun 28, 2008
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
BasicAuthentication
public BasicAuthentication(CredentialSource credentialSource)
getType
public String getType()
- Specified by:
getType
in class Authentication
authenticate
public boolean authenticate(String realm,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Specified by:
authenticate
in class Authentication
- Throws:
ServletException
IOException
sendChallenge
protected void sendChallenge(String realm,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Throws:
ServletException
IOException
Copyright © 2008-2013. All Rights Reserved.