|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.httpgw.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
Field Summary | |
private String |
acceptLanguage
|
private String |
authorization
|
private boolean |
initializing
|
protected MethodAuthenticator |
nestedAuthenticator
|
private String |
remoteHost
|
private String |
remoteUser
|
(package private) static long |
serialVersionUID
|
private Object |
server
|
Fields inherited from interface wt.method.MethodAuthenticator |
versionID |
Constructor Summary | |
GatewayAuthenticator()
No-arg constructor required by Externalizable interface Supported API: true |
|
GatewayAuthenticator(HTTPRequest request)
Construct a GatewayAuthenticator from data in a
HTTPRequest . |
|
GatewayAuthenticator(javax.servlet.http.HttpServletRequest request)
Construct a GatewayAuthenticator from data in a
javax.servlet.http.HttpServletRequest . |
Method Summary | |
MethodArgs |
endorse(MethodArgs args)
Endorse the current message - may replace it with a subclass if necessary Supported API: true |
boolean |
failure(MethodArgs args,
AuthenticationException e)
Report failure and determine if authenticator should be deinstalled. |
String |
getAcceptLanguage()
Get ACCEPT_LANGUAGE value. |
String |
getAuthorization()
Get AUTHORIZATION value. |
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 |
MethodArgs |
newMethodArgs()
Create new MethodArgs object or a subclass used by this authenticator
Supported API: true |
void |
readExternal(ObjectInput input_stream)
Called during unmarshaling in server Supported API: false |
void |
setAcceptLanguage(String accept_language)
Set ACCEPT_LANGUAGE value. |
void |
setAuthorization(String authorization)
Set AUTHORIZATION value. |
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 |
void |
writeExternal(ObjectOutput output_stream)
Called during marshaling Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final long serialVersionUID
private String remoteUser
private String remoteHost
private String acceptLanguage
private String authorization
protected MethodAuthenticator nestedAuthenticator
private Object server
private boolean initializing
Constructor Detail |
public GatewayAuthenticator()
public GatewayAuthenticator(HTTPRequest request)
GatewayAuthenticator
from data in a
HTTPRequest
.
Supported API: true
public GatewayAuthenticator(javax.servlet.http.HttpServletRequest request)
GatewayAuthenticator
from data in a
javax.servlet.http.HttpServletRequest
.
Supported API: true
Method Detail |
public void setRemoteUser(String remote_user)
public String getRemoteUser()
public void setRemoteHost(String remote_host)
public String getRemoteHost()
public void setAcceptLanguage(String accept_language)
public String getAcceptLanguage()
public void setAuthorization(String authorization)
public String getAuthorization()
public MethodArgs newMethodArgs()
MethodArgs
object or a subclass used by this authenticator
Supported API: true
newMethodArgs
in interface MethodAuthenticator
public boolean init()
init
in interface MethodAuthenticator
public MethodArgs endorse(MethodArgs args)
endorse
in interface MethodAuthenticator
public boolean failure(MethodArgs args, AuthenticationException e)
failure
in interface MethodAuthenticator
public void readExternal(ObjectInput input_stream) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput output_stream) throws IOException
writeExternal
in interface Externalizable
IOException
public void setServer(RemoteMethodServer server)
setServer
in interface MethodAuthenticator
public RemoteMethodServer getServer()
getServer
in interface MethodAuthenticator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |