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.
-
caller_dsa
-
-
challenges
-
-
Ticketing(URN, PrivateKey)
- Constructor
-
getChallenge(URN)
- register nonce for initial challenge, so that it can
be used for verification
-
getTicket(URN, int)
- Gets a ticket for the caller
-
verifyTicket(Ticket, PublicKey)
- verifies a ticket
challenges
protected Hashtable challenges
caller_dsa
protected Signature caller_dsa
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
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
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
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