wt.auth
Class SimpleMethodAuthenticator

java.lang.Object
  extended bywt.auth.SimpleMethodAuthenticator
All Implemented Interfaces:
Externalizable, MethodAuthenticator, Serializable

public class SimpleMethodAuthenticator
extends Object
implements MethodAuthenticator, Externalizable

A simple MethodAuthenticator that just carries server-supplied data back to the client and returns it on each subsequent call.

Supported API: true
Extendable: false

See Also:
Serialized Form

Field Summary
 String data
           
private  Object server
           
private static String versionID
           
 
Constructor Summary
SimpleMethodAuthenticator()
           
 
Method Summary
 MethodArgs endorse(MethodArgs args)
          Supported API: false
 boolean failure(MethodArgs args, AuthenticationException e)
          Supported API: false
 RemoteMethodServer getServer()
          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

data

public String data

server

private Object server
Constructor Detail

SimpleMethodAuthenticator

public SimpleMethodAuthenticator()
Method Detail

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