|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.httpgw.FormAuthentication
Form Authentication service.
Authentication is performed by having client call our login method via a form
for which a Web server performs authentication.
Supported API: true
Extendable: true
Field Summary | |
private static String |
ANONYMOUS_USER
|
private static String |
CONFIRM_AUTH_KEY
|
private static String |
FORM_METHOD_AUTH_KEY
|
private static String |
GATEWAY_HOST
|
private static String |
JSPPAGE
|
private static String |
previousClientHost
|
private static String |
REAUTH_FLAG_KEY
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE_SERVER
|
Fields inherited from interface wt.auth.AuthenticationHandler |
versionID |
Constructor Summary | |
FormAuthentication()
|
Method Summary | |
MethodAuthenticator |
bootstrap(MethodAuthenticator authenticator)
Initialization method called from bootstrapping authenticator's init method. |
protected static void |
checkAccess()
Method to validate access to processRequest method. |
MethodAuthenticator |
getBootstrapAuthenticator()
Get a bootstrap MethodAuthenticator capable of identifying the user. |
MethodAuthenticator |
getBootstrapAuthenticator(String session_id)
Get a bootstrap MethodAuthenticator capable of identifying the user
for the given session. |
protected void |
initSession(GatewayAuthenticator auth)
Establish security context (or lack thereof) for a HTTP gateway method call. |
static void |
login(HTTPRequest request,
HTTPResponse response)
Handle client request for form login. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final boolean VERBOSE_SERVER
private static final String ANONYMOUS_USER
private static String GATEWAY_HOST
private static final String FORM_METHOD_AUTH_KEY
private static final String JSPPAGE
private static final String CONFIRM_AUTH_KEY
private static final String REAUTH_FLAG_KEY
private static String previousClientHost
Constructor Detail |
public FormAuthentication()
Method Detail |
public MethodAuthenticator getBootstrapAuthenticator()
MethodAuthenticator
capable of identifying the user.
This method returns a FormLogin
object that will perform login by
calling our login
method using an authenticated HTTP request.
getBootstrapAuthenticator
in interface AuthenticationHandler
MethodAuthenticator
objectpublic MethodAuthenticator getBootstrapAuthenticator(String session_id)
MethodAuthenticator
capable of identifying the user
for the given session.
This method returns a FormLogin
object that will perform login by
calling our login
method using an authenticated HTTP request.
getBootstrapAuthenticator
in interface AuthenticationHandler
session_id
- a string identifying the session to be authenticated
MethodAuthenticator
objectpublic MethodAuthenticator bootstrap(MethodAuthenticator authenticator)
bootstrap
in interface AuthenticationHandler
authenticator
- the MethodAuthenticator
being initialized
MethodAuthenticator
or null if not our authenticator.
AuthenticationException
- if authentication failedpublic static void login(HTTPRequest request, HTTPResponse response) throws IOException, WTException
IOException
WTException
protected void initSession(GatewayAuthenticator auth)
protected static void checkAccess()
processRequest
method.
This implementation allows access only from clients that are running on
the local (server) host or identified in the wt.httpgw.hostname property.
SecurityException
- if check fails and/or access is denied
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |