Package wt.httpgw
Class GatewayAuthenticator
java.lang.Object
wt.httpgw.GatewayAuthenticator
- All Implemented Interfaces:
Externalizable,Serializable,CGIConstants,MethodAuthenticator
public class GatewayAuthenticator
extends Object
implements MethodAuthenticator, Externalizable, CGIConstants
A
MethodAuthenticator that is used to transport trusted user authentication from a HTTP Gateway process
to a method server.
Calls authenticated by this authenticator will only be associated with a persistent session if the init
method has been called. Otherwise, calls are associated with transient sessions that only exist for the duration of
the call.
Normally, method authenticators are received from a server as part of an authentication exception and the
setServer method is implicitly called to set the server for subsequent init calls. If an
instance is created on a client, the setServer method must be explicitly called before calling
init with the server for which this authenticator is going to be used to endorse calls.
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor required by Externalizable interface Supported API: trueGatewayAuthenticator(javax.servlet.http.HttpServletRequest request) Construct aGatewayAuthenticatorfrom data in ajavax.servlet.http.HttpServletRequest.GatewayAuthenticator(HTTPRequest request) Construct aGatewayAuthenticatorfrom data in aHTTPRequest. -
Method Summary
Modifier and TypeMethodDescriptionendorse(MethodArgs args) Endorse the current message - may replace it with a subclass if necessary Supported API: truebooleanfailure(MethodArgs args, AuthenticationException e) Report failure and determine if authenticator should be deinstalled.Get REMOTE_HOST value.Get REMOTE_USER value.Get the server proxy corresponding to this authenticator Supported API: truebooleaninit()Initialize - return false or throw runtime exception to prevent installation Supported API: trueCreate newMethodArgsobject or a subclass used by this authenticator Supported API: truevoidsetRemoteHost(String remote_host) Set REMOTE_HOST value.voidsetRemoteUser(String remote_user) Set REMOTE_USER value.voidsetServer(RemoteMethodServer server) Set the server proxy corresponding to this authenticator Supported API: true
-
Constructor Details
-
GatewayAuthenticator
public GatewayAuthenticator()No-arg constructor required by Externalizable interface Supported API: true -
GatewayAuthenticator
Construct aGatewayAuthenticatorfrom data in aHTTPRequest. Supported API: true -
GatewayAuthenticator
public GatewayAuthenticator(javax.servlet.http.HttpServletRequest request) Construct aGatewayAuthenticatorfrom data in ajavax.servlet.http.HttpServletRequest. Supported API: true
-
-
Method Details
-
setRemoteUser
Set REMOTE_USER value. Supported API: true -
getRemoteUser
Get REMOTE_USER value. Supported API: true -
setRemoteHost
Set REMOTE_HOST value. Supported API: true -
getRemoteHost
Get REMOTE_HOST value. Supported API: true -
newMethodArgs
Create newMethodArgsobject or a subclass used by this authenticator Supported API: true- Specified by:
newMethodArgsin interfaceMethodAuthenticator
-
init
public boolean init()Initialize - return false or throw runtime exception to prevent installation Supported API: true- Specified by:
initin interfaceMethodAuthenticator
-
endorse
Endorse the current message - may replace it with a subclass if necessary Supported API: true- Specified by:
endorsein interfaceMethodAuthenticator
-
failure
Report failure and determine if authenticator should be deinstalled. Supported API: true- Specified by:
failurein interfaceMethodAuthenticator
-
setServer
Set the server proxy corresponding to this authenticator Supported API: true- Specified by:
setServerin interfaceMethodAuthenticator
-
getServer
Get the server proxy corresponding to this authenticator Supported API: true- Specified by:
getServerin interfaceMethodAuthenticator
-