|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.httpgw.HTTPAuthentication
HTTP Authentication service.
Authentication is performed by having client call our login method through an
authenticating HTTP gateway for which a Web server performs authentication.
Supported API: true
Extendable: true
Field Summary | |
private static String |
ANONYMOUS_USER
|
private static String |
GATEWAY_HOST
|
private static String |
previousClientHost
|
private static String |
REAUTH_FLAG_KEY
|
private static String |
RESOURCE
|
private static boolean |
SET_KEEPALIVE
|
private static boolean |
VERBOSE_SERVER
|
Fields inherited from interface wt.auth.AuthenticationHandler |
versionID |
Constructor Summary | |
HTTPAuthentication()
|
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 HTTP client request for 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 boolean SET_KEEPALIVE
private static final String REAUTH_FLAG_KEY
private static String previousClientHost
Constructor Detail |
public HTTPAuthentication()
Method Detail |
public MethodAuthenticator getBootstrapAuthenticator()
MethodAuthenticator
capable of identifying the user.
This method returns a HTTPLogin
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 HTTPLogin
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
IOException
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 |