org.openejb.client
Class AuthenticationRequest

java.lang.Object
  extended byorg.openejb.client.AuthenticationRequest
All Implemented Interfaces:
Externalizable, Request, RequestMethods, Serializable

public class AuthenticationRequest
extends Object
implements Request

Since:
11/25/2001
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.openejb.client.RequestMethods
AUTH_REQUEST, EJB_HOME_CREATE, EJB_HOME_FIND, EJB_HOME_GET_EJB_META_DATA, EJB_HOME_GET_HOME_HANDLE, EJB_HOME_REMOVE_BY_HANDLE, EJB_HOME_REMOVE_BY_PKEY, EJB_OBJECT_BUSINESS_METHOD, EJB_OBJECT_GET_EJB_HOME, EJB_OBJECT_GET_HANDLE, EJB_OBJECT_GET_PRIMARY_KEY, EJB_OBJECT_IS_IDENTICAL, EJB_OBJECT_REMOVE, EJB_REQUEST, JNDI_LIST, JNDI_LIST_BINDINGS, JNDI_LOOKUP, JNDI_REQUEST, STOP_REQUEST_quit, STOP_REQUEST_Quit, STOP_REQUEST_stop, STOP_REQUEST_Stop
 
Constructor Summary
AuthenticationRequest()
          Constructs a new AuthenticationRequest to send to the server.
AuthenticationRequest(Object principle, Object credentials)
          Constructs a new AuthenticationRequest to send to the server.
 
Method Summary
 Object getCredentials()
          Returns the client's credentials.
 Object getPrinciple()
          Returns the client's principle.
 byte getRequestType()
           
 void readExternal(ObjectInput in)
          The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.
 void setCredentials(Object credentials)
          Sets the clients credentials.
 void setPrinciple(Object principle)
          Sets the client's principle.
 void writeExternal(ObjectOutput out)
          The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationRequest

public AuthenticationRequest()
Constructs a new AuthenticationRequest to send to the server.


AuthenticationRequest

public AuthenticationRequest(Object principle,
                             Object credentials)
Constructs a new AuthenticationRequest to send to the server.

Parameters:
principle -
credentials -
Method Detail

getRequestType

public byte getRequestType()
Specified by:
getRequestType in interface Request

getPrinciple

public Object getPrinciple()
Returns the client's principle.

Returns:

getCredentials

public Object getCredentials()
Returns the client's credentials.

Returns:

setPrinciple

public void setPrinciple(Object principle)
Sets the client's principle.

Parameters:
principle -

setCredentials

public void setCredentials(Object credentials)
Sets the clients credentials.

Parameters:
credentials -

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Specified by:
readExternal in interface Request
Parameters:
in - the stream to read data from in order to restore the object
Throws:
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being restored cannot be found.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Specified by:
writeExternal in interface Request
Parameters:
out - the stream to write the object to
Throws:
IOException - Includes any I/O exceptions that may occur


Copyright © 1999-2005 OpenEJB. All Rights Reserved.