authentication
Class AuthenticationService
java.lang.Object
authentication.AuthenticationService
public class AuthenticationService
- extends java.lang.Object
This class is the main class for the authentication service. It uses the other classes to
consider an authentication request and returns the result.
- Author:
- Gunn Olaussen & Kirsti N. Torgersen
Field Summary |
static boolean |
DEBUG
|
Method Summary |
static java.lang.String |
authenticate(javax.servlet.http.HttpServletRequest req)
This method can be used to authenticate a user by calling it with a SASL request inside
an HTTP request. |
private static void |
debug(SaslRequest req,
SaslResponse res)
This method can be used to write the request and response message to a text file so that
they can be examined to se if they are correct. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
AuthenticationService
public AuthenticationService()
authenticate
public static java.lang.String authenticate(javax.servlet.http.HttpServletRequest req)
- This method can be used to authenticate a user by calling it with a SASL request inside
an HTTP request. It will return a String representation of a SASL response.
- Parameters:
req
- HttpServletRequest The HTTP request containing the authentication request.
- Returns:
- String The response to the request.
debug
private static void debug(SaslRequest req,
SaslResponse res)
- This method can be used to write the request and response message to a text file so that
they can be examined to se if they are correct.
- Parameters:
req
- SaslRequest The SASL request receved in the HTTP request. May be null if
something went wrong during the parsing.res
- SaslResponse The SASL response as it will be returned to the client.