ajanta.util
Class AgentTicketing

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

public class AgentTicketing
extends Ticketing

Extended from base Ticketing class. This class takes a reference of the name registry which enables it to lookup the public key for a mobile agent from name-registry insterad of local machine


Field Summary
 
Fields inherited from class ajanta.util.Ticketing
caller_dsa, challenges
 
Constructor Summary
AgentTicketing(ajanta.naming.URN name, java.security.PrivateKey k, ajanta.server.NRAccess nr)
          Constructor
 
Method Summary
 boolean verifyTicket(ajanta.util.Ticket t)
          verifies a ticket, it does not require the public key of the ticket granter as the key would be fetched from the name registry
 
Methods inherited from class ajanta.util.Ticketing
getChallenge, getTicket, verifyTicket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentTicketing

public AgentTicketing(ajanta.naming.URN name,
                      java.security.PrivateKey k,
                      ajanta.server.NRAccess nr)
Constructor

Parameters:
name - - the ticket granter
k - - private key of the ticket granter who will sign the ticket
nr - - the name registry access object
Method Detail

verifyTicket

public boolean verifyTicket(ajanta.util.Ticket t)
                     throws java.rmi.RemoteException,
                            java.security.InvalidKeyException,
                            java.security.SignatureException
verifies a ticket, it does not require the public key of the ticket granter as the key would be fetched from the name registry

Parameters:
t - - the ticket which would be verified.
java.rmi.RemoteException
java.security.InvalidKeyException
java.security.SignatureException