wt.session
Class SimpleSessionAuthenticator

java.lang.Object
  extended bywt.session.SimpleSessionAuthenticator
All Implemented Interfaces:
Externalizable, MethodAuthenticator, Serializable

public class SimpleSessionAuthenticator
extends Object
implements MethodAuthenticator, Externalizable

A MethodAuthenticator that is used to associate method invocations with previously identified session objects. This simple implementation just adds the session id to each call.

Supported API: true
Extendable: false

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
private  Object server
           
private  String sessionId
           
private static String versionID
           
 
Constructor Summary
SimpleSessionAuthenticator()
          Supported API: true
SimpleSessionAuthenticator(String session_id)
          Supported API: true
 
Method Summary
 MethodArgs endorse(MethodArgs args)
          Supported API: false
 boolean failure(MethodArgs args, AuthenticationException e)
          Supported API: false
 RemoteMethodServer getServer()
          Supported API: false
 String getSessionId()
          Supported API: false
 boolean init()
          Supported API: false
 MethodArgs newMethodArgs()
          Supported API: false
 void readExternal(ObjectInput input_stream)
          Supported API: false
 void setServer(RemoteMethodServer server)
          Supported API: false
 void writeExternal(ObjectOutput output_stream)
          Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

sessionId

private String sessionId

server

private Object server
Constructor Detail

SimpleSessionAuthenticator

public SimpleSessionAuthenticator()
Supported API: true


SimpleSessionAuthenticator

public SimpleSessionAuthenticator(String session_id)
Supported API: true

Method Detail

getSessionId

public String getSessionId()
Supported API: false


newMethodArgs

public MethodArgs newMethodArgs()
Supported API: false

Specified by:
newMethodArgs in interface MethodAuthenticator

init

public boolean init()
Supported API: false

Specified by:
init in interface MethodAuthenticator

endorse

public MethodArgs endorse(MethodArgs args)
Supported API: false

Specified by:
endorse in interface MethodAuthenticator

failure

public boolean failure(MethodArgs args,
                       AuthenticationException e)
Supported API: false

Specified by:
failure in interface MethodAuthenticator

readExternal

public void readExternal(ObjectInput input_stream)
                  throws IOException,
                         ClassNotFoundException
Supported API: false

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput output_stream)
                   throws IOException
Supported API: false

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

setServer

public void setServer(RemoteMethodServer server)
Supported API: false

Specified by:
setServer in interface MethodAuthenticator

getServer

public RemoteMethodServer getServer()
Supported API: false

Specified by:
getServer in interface MethodAuthenticator