All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.util.Ticket

java.lang.Object
   |
   +----ajanta.util.Ticket

public class Ticket
extends Object
implements Serializable
The Ticket 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.

See Also:
Ticketing

Variable Index

 o challenge
 o signature
 o signer

Constructor Index

 o Ticket(Ticket, URN, PrivateKey)
This constructor takes as parameter a Ticket object which has been sent to the client by a server, and extracts the nonce contained in it.
 o Ticket(URN, byte[], int)

Method Index

 o toString()
Converts the Ticket object to a String representation suitable for printing onto the screen.

Variables

 o signer
 public URN signer
 o signature
 public byte signature[]
 o challenge
 public int challenge

Constructors

 o Ticket
 public Ticket(URN u,
               byte s[],
               int n)
 o Ticket
 public Ticket(Ticket t,
               URN signer,
               PrivateKey key) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException
This constructor takes as parameter a Ticket object which has been sent to the client by a server, and extracts the nonce contained in it. This nonce is signed using the given private key, and stored in this new Ticket object. Also, the nonce contained in the original Ticket is then incremented, so that the Ticket can be reused for future interactions with the same service.

Parameters:
t - The original Ticket containing the nonce to be signed.
signer - The name of the client, to be inserted into the Ticket being constructed here.
key - The private key to be used for signing the nonce.

Methods

 o toString
 public String toString()
Converts the Ticket object to a String representation suitable for printing onto the screen.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index