All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.util.Ticketing

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

public class Ticketing
extends Object
Base ticketing class.This object take care of create and verify ticket. Imporantly it stores the challeges send to the other.


Variable Index

 o caller_dsa
 o challenges

Constructor Index

 o Ticketing(URN, PrivateKey)
Constructor

Method Index

 o getChallenge(URN)
register nonce for initial challenge, so that it can be used for verification
 o getTicket(URN, int)
Gets a ticket for the caller
 o verifyTicket(Ticket, PublicKey)
verifies a ticket

Variables

 o challenges
 protected Hashtable challenges
 o caller_dsa
 protected Signature caller_dsa

Constructors

 o Ticketing
 public Ticketing(URN name,
                  PrivateKey k)
Constructor

Parameters:
name - - the ticket granter
k - - private key of the ticket granter who will sign the ticket

Methods

 o getChallenge
 public synchronized int getChallenge(URN callee)
register nonce for initial challenge, so that it can be used for verification

Parameters:
callee - - to whom the initial challenge is sent
Returns:
s - the ramdom nonce for the callee
 o getTicket
 public Ticket getTicket(URN caller,
                         int nonce)
Gets a ticket for the caller

Parameters:
caller - for whom the ticket will be issued
nonce - the challenge provoded by the caller
 o verifyTicket
 public boolean verifyTicket(Ticket t,
                             PublicKey vk) throws RemoteException, InvalidKeyException, SignatureException
verifies a ticket

Parameters:
t - - the ticket which would be verified.
vk - - the public key of the ticket granter

All Packages  Class Hierarchy  This Package  Previous  Next  Index