|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.httpgw.GatewayAuthenticator
public class GatewayAuthenticator
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
| Constructor Summary | |
|---|---|
GatewayAuthenticator()
No-arg constructor required by Externalizable interface Supported API: true |
|
GatewayAuthenticator(HTTPRequest request)
Construct a GatewayAuthenticator from data in a
HTTPRequest. |
|
| Method Summary | |
|---|---|
wt.method.MethodArgs |
endorse(wt.method.MethodArgs args)
Endorse the current message - may replace it with a subclass if necessary Supported API: true |
boolean |
failure(wt.method.MethodArgs args,
AuthenticationException e)
Report failure and determine if authenticator should be deinstalled. |
String |
getRemoteHost()
Get REMOTE_HOST value. |
String |
getRemoteUser()
Get REMOTE_USER value. |
RemoteMethodServer |
getServer()
Get the server proxy corresponding to this authenticator Supported API: true |
boolean |
init()
Initialize - return false or throw runtime exception to prevent installation Supported API: true |
wt.method.MethodArgs |
newMethodArgs()
Create new MethodArgs object or a subclass used by this authenticator
Supported API: true |
void |
setRemoteHost(String remote_host)
Set REMOTE_HOST value. |
void |
setRemoteUser(String remote_user)
Set REMOTE_USER value. |
void |
setServer(RemoteMethodServer server)
Set the server proxy corresponding to this authenticator Supported API: true |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GatewayAuthenticator()
public GatewayAuthenticator(HTTPRequest request)
GatewayAuthenticator from data in a
HTTPRequest.
Supported API: true
| Method Detail |
|---|
public void setRemoteUser(String remote_user)
public String getRemoteUser()
public void setRemoteHost(String remote_host)
public String getRemoteHost()
public wt.method.MethodArgs newMethodArgs()
MethodArgs object or a subclass used by this authenticator
Supported API: true
newMethodArgs in interface MethodAuthenticatorpublic boolean init()
init in interface MethodAuthenticatorpublic wt.method.MethodArgs endorse(wt.method.MethodArgs args)
endorse in interface MethodAuthenticator
public boolean failure(wt.method.MethodArgs args,
AuthenticationException e)
failure in interface MethodAuthenticatorpublic void setServer(RemoteMethodServer server)
setServer in interface MethodAuthenticatorpublic RemoteMethodServer getServer()
getServer in interface MethodAuthenticator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||