|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajanta.server.NRAccess
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
Constructor Summary | |
NRAccess(ajanta.naming.URN serverURN,
java.security.PrivateKey dsa_p,
java.lang.String nameregURL)
constructor |
Method Summary | |
ajanta.util.Ticket |
authenticate(ajanta.naming.URN caller,
int nonce,
ajanta.util.ContextObject context)
gets the initial ticket from name registry |
void |
bind(ajanta.naming.URN urn,
ajanta.naming.NREntry entry)
Binds the URN with with the specified entry |
java.security.cert.X509Certificate |
getCertificate(ajanta.naming.URN urn)
|
java.net.URL |
getCodeBaseURL(ajanta.naming.URN urn)
returns the code base location of an agent server. |
java.security.PublicKey |
getEncryptKey(ajanta.naming.URN urn)
returns the public key encryption key pair |
java.security.cert.X509Certificate |
getNRCertificate()
|
java.net.URL |
getURL(ajanta.naming.URN urn)
Returs the first entry of the url list for this entry. |
java.util.Vector |
getURLs(ajanta.naming.URN urn)
return the locations associated with this name |
java.security.PublicKey |
getVerifyKey(ajanta.naming.URN urn)
returns the verification key for the signature key pair |
ajanta.naming.NREntry |
lookup(ajanta.naming.URN urn)
Returns the NREntry object associated with the specified name in the registry. |
void |
rebind(ajanta.naming.URN urn,
ajanta.naming.NREntry entry)
Rebinds the URN with with the specified entry, replacing any existing binding, |
void |
rebind(ajanta.naming.URN urn,
ajanta.naming.NREntry entry,
ajanta.util.Ticket t)
Used when a ticket is signed by other than the agent server, In this case pass the ticket |
void |
rebindAgentServer(ajanta.naming.URN ag,
ajanta.naming.URN server)
updates the agent server location for an agent entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NRAccess(ajanta.naming.URN serverURN, java.security.PrivateKey dsa_p, java.lang.String nameregURL)
serverURN
- - the server invoking the name registry apidsa_p
- - private key of the server for Ticket signaturenameregURL
- - the name registry will be connected toMethod Detail |
public ajanta.util.Ticket authenticate(ajanta.naming.URN caller, int nonce, ajanta.util.ContextObject context) throws java.rmi.RemoteException
caller
- - client urnnonce
- - challenge
java.rmi.RemoteException
public void bind(ajanta.naming.URN urn, ajanta.naming.NREntry entry) throws java.rmi.AlreadyBoundException, java.rmi.RemoteException
java.rmi.AlreadyBoundException
- If name is already bound.
java.rmi.RemoteException
- If remote operation failedpublic void rebind(ajanta.naming.URN urn, ajanta.naming.NREntry entry, ajanta.util.Ticket t) throws java.rmi.RemoteException
java.rmi.RemoteException
public void rebind(ajanta.naming.URN urn, ajanta.naming.NREntry entry) throws java.rmi.RemoteException
java.rmi.RemoteException
- If remote operation failedpublic void rebindAgentServer(ajanta.naming.URN ag, ajanta.naming.URN server) throws java.rmi.RemoteException
ag
- - agent nameserver
- - the new agentserver location
java.rmi.RemoteException
public java.util.Vector getURLs(ajanta.naming.URN urn) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.net.URL getURL(ajanta.naming.URN urn) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.net.URL getCodeBaseURL(ajanta.naming.URN urn) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.security.PublicKey getVerifyKey(ajanta.naming.URN urn) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.security.PublicKey getEncryptKey(ajanta.naming.URN urn) throws java.rmi.RemoteException
java.rmi.RemoteException
public ajanta.naming.NREntry lookup(ajanta.naming.URN urn) throws java.rmi.RemoteException
urn
- - the name of the entry
java.rmi.RemoteException
public java.security.cert.X509Certificate getCertificate(ajanta.naming.URN urn) throws java.rmi.RemoteException
urn
- URN of entity whose certificate is being requested
java.rmi.RemoteException
public java.security.cert.X509Certificate getNRCertificate() throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |