ajanta.util
Class CompleteTicket

java.lang.Object
  |
  +--ajanta.util.CompleteTicket
All Implemented Interfaces:
java.io.Serializable

public class CompleteTicket
extends java.lang.Object
implements java.io.Serializable

The CompleteTicket class represents a type of capability required by clients to invoke services which require authentication. It contains the ticket holder's name (URN) along with its signature on a nonce, i.e. a challenge which was previously sent to it by the service. It can optionally contain anothe nonce of its own, which challenges the service to prove its identity. It takes care of the Lowe's attack that is possible on the Needham-Schroeder protocol.

See Also:
Ticketing, Serialized Form

Field Summary
 int challenge
           
 byte[] signature
           
 ajanta.naming.URN signer
           
 
Constructor Summary
CompleteTicket(ajanta.naming.URN u, byte[] s, int challenge)
           
 
Method Summary
 java.lang.String toString()
          Converts the CompleteTicket object to a String representation suitable for printing onto the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

signer

public ajanta.naming.URN signer

signature

public byte[] signature

challenge

public int challenge
Constructor Detail

CompleteTicket

public CompleteTicket(ajanta.naming.URN u,
                      byte[] s,
                      int challenge)
Method Detail

toString

public java.lang.String toString()
Converts the CompleteTicket object to a String representation suitable for printing onto the screen.

Overrides:
toString in class java.lang.Object