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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentTicketing
public AgentTicketing(ajanta.naming.URN name,
java.security.PrivateKey k,
ajanta.server.NRAccess nr)
- Constructor
- Parameters:
name
- - the ticket granterk
- - private key of the ticket granter who will sign the ticketnr
- - the name registry access object
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