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