|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.pastry.rmi.RMIPastrySecurityManager
Security manager for RMI connections between nodes.
Constructor Summary | |
RMIPastrySecurityManager(rice.pastry.rmi.RMINodeHandle rlh,
rice.pastry.rmi.RMINodeHandlePool hp)
Constructor. |
Method Summary | |
java.util.Date |
getTimestamp()
Gets the current time for a timestamp. |
void |
setLocalPastryNode(rice.pastry.PastryNode pn)
Sets the local Pastry node after it is fully constructed. |
boolean |
verifyAddressBinding(rice.pastry.security.Credentials cred,
rice.pastry.messaging.Address addr)
Checks to see if these credentials can be associated with the address. |
boolean |
verifyMessage(rice.pastry.messaging.Message msg)
This method takes a message and returns true if the message is safe and false otherwise. |
rice.pastry.NodeHandle |
verifyNodeHandle(rice.pastry.NodeHandle handle)
Verify node handle safety. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RMIPastrySecurityManager(rice.pastry.rmi.RMINodeHandle rlh, rice.pastry.rmi.RMINodeHandlePool hp)
Method Detail |
public void setLocalPastryNode(rice.pastry.PastryNode pn)
pn
- local Pastry node.public boolean verifyMessage(rice.pastry.messaging.Message msg)
verifyMessage
in interface PastrySecurityManager
msg
- a message.
public boolean verifyAddressBinding(rice.pastry.security.Credentials cred, rice.pastry.messaging.Address addr)
verifyAddressBinding
in interface PastrySecurityManager
cred
- some credentials.addr
- an address.
public rice.pastry.NodeHandle verifyNodeHandle(rice.pastry.NodeHandle handle)
verifyNodeHandle
in interface PastrySecurityManager
handle
- the handle to check.
public java.util.Date getTimestamp()
getTimestamp
in interface PastrySecurityManager
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |