|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--agents.agent.TicketAgent
Class for management of the user ticket.
Field Summary | |
protected java.lang.String |
passwd
|
Constructor Summary | |
TicketAgent()
Method for creating a new instance of the class. |
|
TicketAgent(java.lang.String passwd)
Method for creating a new instance of the class. |
Method Summary | |
static void |
decode(Message msg)
Method for decoding the message (which is the ticket). |
static Ticket |
decodeTicket(byte[] tic)
Method for decoding the ticket with defaults password. |
static byte[] |
encodeTicket(Ticket ticket)
Method for encode the ticket with defaults password. |
Ticket |
generateTicket(Message msg)
Method for generating ticket to login. |
java.lang.Object |
query(java.lang.Object msg1)
Method for executing the request. |
void |
query(java.io.ObjectInput in,
java.io.ObjectOutput out)
Method for receiving the request and sending the response to the database servlet. |
static void |
validateUserTicket(java.lang.String passwd,
java.lang.String resource,
java.lang.String username,
byte[] userTicket)
Method for validating the user ticket. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String passwd
Constructor Detail |
public TicketAgent()
public TicketAgent(java.lang.String passwd)
Method Detail |
public void query(java.io.ObjectInput in, java.io.ObjectOutput out) throws java.lang.Exception
query
in interface ObjectStream
public java.lang.Object query(java.lang.Object msg1) throws java.lang.Exception
public Ticket generateTicket(Message msg) throws java.lang.Exception
public static Ticket decodeTicket(byte[] tic) throws java.io.IOException, java.lang.ClassNotFoundException
public static byte[] encodeTicket(Ticket ticket) throws java.io.IOException
public static void validateUserTicket(java.lang.String passwd, java.lang.String resource, java.lang.String username, byte[] userTicket) throws java.io.IOException, java.lang.ClassNotFoundException
public static void decode(Message msg) throws java.io.IOException, java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |