All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.server.NRAccess

java.lang.Object
   |
   +----ajanta.server.NRAccess

public class NRAccess
extends Object
Client side module to access Name Registry. All these client side call are same as name registry interface, except tickets are handled by this module This class syncronizesz all call to the name registry


Method Index

 o authenticate(URN, int)
gets the initial ticket from name registry
 o bind(URN, NREntry)
Binds the URN with with the specified entry
 o getCodeBaseURL(URN)
returns the code base location of an agent server.
 o getEncryptKey(URN)
returns the public key encryption key pair
 o getURL(URN)
Returs the first entry of the url list for this entry.
 o getURLs(URN)
returns the locations associated with this name
 o getVerifyKey(URN)
returns the verification key for the signature key pair
 o lookup(URN)
Returns the NREntry object associated with the specified name in the registry.
 o rebind(URN, NREntry)
Rebinds the URN with with the specified entry, replacing any existing binding,
 o rebind(URN, NREntry, Ticket)
Used when a ticket is signed by other than the agent server, In this case pass the ticket
 o rebindAgentServer(URN, URN)
updates the agent server location for an agent entry.

Methods

 o authenticate
 public Ticket authenticate(URN caller,
                            int nonce) throws RemoteException
gets the initial ticket from name registry

Parameters:
caller - - client urn
nonce - - challenge
Returns:
a Ticket from server, which contatins the nonce signed by the name registry
 o bind
 public synchronized void bind(URN urn,
                               NREntry entry) throws AlreadyBoundException, RemoteException
Binds the URN with with the specified entry

Throws: AlreadyBoundException
If name is already bound.
Throws: RemoteException
If remote operation failed
 o rebind
 public synchronized void rebind(URN urn,
                                 NREntry entry,
                                 Ticket t) throws RemoteException
Used when a ticket is signed by other than the agent server, In this case pass the ticket

 o rebind
 public synchronized void rebind(URN urn,
                                 NREntry entry) throws RemoteException
Rebinds the URN with with the specified entry, replacing any existing binding,

Throws: RemoteException
If remote operation failed
 o rebindAgentServer
 public synchronized void rebindAgentServer(URN ag,
                                            URN server) throws RemoteException
updates the agent server location for an agent entry.

Parameters:
ag - - agent name
server - - the new agentserver location
 o getURLs
 public Vector getURLs(URN urn) throws RemoteException
returns the locations associated with this name

 o getURL
 public URL getURL(URN urn) throws RemoteException
Returs the first entry of the url list for this entry. Most of the cases it is the only entry

 o getCodeBaseURL
 public URL getCodeBaseURL(URN urn) throws RemoteException
returns the code base location of an agent server. if the entry is not an agent server entry, throws a remote exception

 o getVerifyKey
 public PublicKey getVerifyKey(URN urn) throws RemoteException
returns the verification key for the signature key pair

 o getEncryptKey
 public PublicKey getEncryptKey(URN urn) throws RemoteException
returns the public key encryption key pair

 o lookup
 public NREntry lookup(URN urn) throws RemoteException
Returns the NREntry object associated with the specified name in the registry.

Parameters:
urn - - the name of the entry

All Packages  Class Hierarchy  This Package  Previous  Next  Index