|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--ajanta.naming.NameRegistryImpl
Field Summary | |
protected ajanta.util.Ticketing |
tkt
|
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
NameRegistryImpl(ajanta.naming.URN nameRegistry)
CONSTRUCTOR |
Method Summary | |
void |
adminRebindNameRegistry(ajanta.naming.URN urn,
ajanta.naming.NREntry entry,
ajanta.util.Ticket ticket)
Administrative rebind to add entries in local name registry. |
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,
ajanta.util.Ticket ticket)
This call is used to bind an entry to local name registry by a agent server. |
void |
bind(ajanta.naming.URN urn,
ajanta.naming.NREntry entry,
ajanta.naming.URN binder,
ajanta.util.Ticket ticket)
This call is used to bind an entry to remote name registry by a namre registry. |
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)
return the public key encryption key pair |
java.security.cert.X509Certificate |
getNRCertificate()
|
java.security.PublicKey |
getNRVerifyKey(ajanta.naming.URN urn)
return the verification key of a name registry for the signature key pair |
java.security.PublicKey |
getPublicKey(ajanta.naming.URN urn)
return the public key encryption key pair |
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)
return 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. |
static void |
main(java.lang.String[] argv)
main program starts up the server and waits for clients to invoke |
ajanta.naming.URN |
newURN()
Return new URN in this Name-Server namespace |
void |
rebind(ajanta.naming.URN urn,
ajanta.naming.NREntry entry,
ajanta.util.Ticket ticket)
This call is used to rebind an entry to local name registry by an agent server. |
void |
rebind(ajanta.naming.URN urn,
ajanta.naming.NREntry entry,
ajanta.naming.URN binder,
ajanta.util.Ticket ticket)
This call is used to rebind an entry to remote name registry by a namre registry. |
void |
rebindAgentServer(ajanta.naming.URN ag,
ajanta.naming.URN server,
ajanta.util.Ticket ticket)
updates the agent server location for an agent entry. |
void |
rebindAgentServer(ajanta.naming.URN ag,
ajanta.naming.URN server,
ajanta.naming.URN binder,
ajanta.util.Ticket ticket)
updates the agent server location for an agent entry. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ajanta.util.Ticketing tkt
Constructor Detail |
public NameRegistryImpl(ajanta.naming.URN nameRegistry) throws java.rmi.RemoteException
Method Detail |
public ajanta.util.Ticket authenticate(ajanta.naming.URN caller, int nonce, ajanta.util.ContextObject context)
authenticate
in interface NameRegistry
caller
- - client urnnonce
- - challengecontext
- - any aditional context for the ticket
public void bind(ajanta.naming.URN urn, ajanta.naming.NREntry entry, ajanta.util.Ticket ticket) throws java.rmi.AlreadyBoundException, java.rmi.RemoteException
bind
in interface NameRegistry
urn
- - the urn will be registeredentry
- - the entry wich contain an aclticket
- - needed for authentication. ticket.signer is the binder
java.rmi.RemoteException
- If remote operation failed
java.rmi.AlreadyBoundException
- If name is already bound.public void bind(ajanta.naming.URN urn, ajanta.naming.NREntry entry, ajanta.naming.URN binder, ajanta.util.Ticket ticket) throws java.rmi.AlreadyBoundException, java.rmi.RemoteException
bind
in interface NameRegistry
urn
- - the urn will be registeredentry
- - the entry wich contain an aclbinder
- - server's ticket.signer is the binderticket
- - needed for authentication
java.rmi.AlreadyBoundException
java.rmi.RemoteException
public ajanta.naming.NREntry lookup(ajanta.naming.URN urn) throws java.rmi.RemoteException
lookup
in interface NameRegistry
urn
- - the name of the entry
java.rmi.RemoteException
public void rebind(ajanta.naming.URN urn, ajanta.naming.NREntry entry, ajanta.util.Ticket ticket) throws java.rmi.RemoteException
rebind
in interface NameRegistry
urn
- - the urn will be registeredentry
- - the entry wich contain an aclticket
- - needed for authentication. ticket.signer is the binder
java.rmi.RemoteException
- If remote operation failedpublic void adminRebindNameRegistry(ajanta.naming.URN urn, ajanta.naming.NREntry entry, ajanta.util.Ticket ticket) throws java.rmi.RemoteException
adminRebindNameRegistry
in interface NameRegistry
urn
- - the urn will be registeredentry
- - the entry wich contain an aclticket
- - needed for authentication. ticket.signer is the binder
java.rmi.RemoteException
public java.security.PublicKey getNRVerifyKey(ajanta.naming.URN urn) throws java.rmi.RemoteException
getNRVerifyKey
in interface NameRegistry
java.rmi.RemoteException
public void rebind(ajanta.naming.URN urn, ajanta.naming.NREntry entry, ajanta.naming.URN binder, ajanta.util.Ticket ticket) throws java.rmi.RemoteException
rebind
in interface NameRegistry
urn
- - the urn will be registeredentry
- - the entry wich contain an aclbinder
- - server's ticket.signer is the binderticket
- - needed for authentication.
java.rmi.RemoteException
public java.util.Vector getURLs(ajanta.naming.URN urn) throws java.rmi.RemoteException
getURLs
in interface NameRegistry
java.rmi.RemoteException
public java.net.URL getURL(ajanta.naming.URN urn) throws java.rmi.RemoteException
getURL
in interface NameRegistry
java.rmi.RemoteException
public java.net.URL getCodeBaseURL(ajanta.naming.URN urn) throws java.rmi.RemoteException
getCodeBaseURL
in interface NameRegistry
java.rmi.RemoteException
public java.security.PublicKey getPublicKey(ajanta.naming.URN urn) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.security.PublicKey getEncryptKey(ajanta.naming.URN urn) throws java.rmi.RemoteException
getEncryptKey
in interface NameRegistry
java.rmi.RemoteException
public java.security.PublicKey getVerifyKey(ajanta.naming.URN urn) throws java.rmi.RemoteException
getVerifyKey
in interface NameRegistry
java.rmi.RemoteException
public void rebindAgentServer(ajanta.naming.URN ag, ajanta.naming.URN server, ajanta.util.Ticket ticket) throws java.rmi.RemoteException
rebindAgentServer
in interface NameRegistry
ag
- - agent nameserver
- - the new agentserver locationticket
- - needed for authentication. ticket.signer is the binder
java.rmi.RemoteException
public void rebindAgentServer(ajanta.naming.URN ag, ajanta.naming.URN server, ajanta.naming.URN binder, ajanta.util.Ticket ticket) throws java.rmi.RemoteException
rebindAgentServer
in interface NameRegistry
ag
- - agent nameserver
- - the new agentserver locationbinder
- - server's ticket.signer is the binderticket
- - needed for authentication. ticket.signer is the binder
java.rmi.RemoteException
public ajanta.naming.URN newURN() throws java.rmi.RemoteException
newURN
in interface NameRegistry
java.rmi.RemoteException
public java.security.cert.X509Certificate getCertificate(ajanta.naming.URN urn) throws java.rmi.RemoteException
getCertificate
in interface NameRegistry
urn
- URN of entity whose certificate is being requested
java.rmi.RemoteException
public java.security.cert.X509Certificate getNRCertificate() throws java.rmi.RemoteException
getNRCertificate
in interface NameRegistry
java.rmi.RemoteException
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |