|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object implementing this interface provides the minimum service a body offers remotely. This interface is the glue with the JINI Remote interface that allow the body to be accessed remotely.
Remote
,
UniversalBody
Method Summary | |
void |
changeProxiedBody(Body newBody)
Change the body referenced by this adapter |
void |
disableAC()
Disables automatic continuation mechanism for this body |
void |
enableAC()
Enables automatic continuation mechanism for this body |
java.security.cert.X509Certificate |
getCertificate()
|
byte[] |
getCertificateEncoded()
|
java.util.ArrayList |
getEntities()
|
UniqueID |
getID()
Returns the UniqueID of this body This identifier is unique accross all JVMs |
java.lang.String |
getJobID()
|
java.lang.String |
getNodeURL()
Returns the url of the node this body is associated to The url of the node can change if the active object migrates |
SecurityContext |
getPolicy(SecurityContext securityContext)
|
Policy |
getPolicyFrom(java.security.cert.X509Certificate certificate)
|
Communication |
getPolicyTo(java.lang.String type,
java.lang.String from,
java.lang.String to)
|
ProActiveSecurityManager |
getProActiveSecurityManager()
|
java.security.PublicKey |
getPublicKey()
|
java.lang.String |
getVNName()
|
void |
initiateSession(int type,
UniversalBody body)
|
ConfidentialityTicket |
negociateKeyReceiverSide(ConfidentialityTicket confidentialityTicket,
long sessionID)
|
byte[][] |
publicKeyExchange(long sessionID,
UniversalBody distantBody,
byte[] my_pub,
byte[] my_cert,
byte[] sig_code)
|
byte[] |
randomValue(long sessionID,
byte[] cl_rand)
|
int |
receiveFTMessage(FTMessage fte)
For sending an event to the FTManager linked to this object |
int |
receiveReply(Reply r)
Receives a reply in response to a former request. |
int |
receiveRequest(Request r)
Receives a request for later processing. |
byte[][] |
secretKeyExchange(long sessionID,
byte[] tmp,
byte[] tmp1,
byte[] tmp2,
byte[] tmp3,
byte[] tmp4)
|
void |
setImmediateService(java.lang.String methodName)
For setting an immediate service for this body. |
long |
startNewSession(Communication policy)
|
void |
terminate()
Terminate the body. |
void |
terminateSession(long sessionID)
|
void |
updateLocation(UniqueID id,
UniversalBody body)
Signals to this body that the body identified by id is now to a new jini location. |
Method Detail |
public int receiveRequest(Request r) throws java.io.IOException, RenegotiateSessionException
r
- the request to process
java.io.IOException
- if the request cannot be accepted
RenegotiateSessionException
public int receiveReply(Reply r) throws java.io.IOException
r
- the reply received
java.io.IOException
- if the reply cannot be acceptedpublic void terminate() throws java.io.IOException
java.io.IOException
public java.lang.String getNodeURL() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an exception occured during the jini communicationpublic UniqueID getID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an exception occured during the jini communicationpublic java.lang.String getJobID() throws java.rmi.RemoteException
java.rmi.RemoteException
public void updateLocation(UniqueID id, UniversalBody body) throws java.io.IOException
id
- the id of the bodybody
- the stub to the new location
java.io.IOException
- if an exception occured during the jini communicationpublic void enableAC() throws java.io.IOException
java.io.IOException
public void disableAC() throws java.io.IOException
java.io.IOException
public void setImmediateService(java.lang.String methodName) throws java.io.IOException
java.io.IOException
public void initiateSession(int type, UniversalBody body) throws java.io.IOException, CommunicationForbiddenException, AuthenticationException, java.rmi.RemoteException, RenegotiateSessionException, SecurityNotAvailableException
java.io.IOException
CommunicationForbiddenException
AuthenticationException
java.rmi.RemoteException
RenegotiateSessionException
SecurityNotAvailableException
public void terminateSession(long sessionID) throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public java.security.cert.X509Certificate getCertificate() throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public ProActiveSecurityManager getProActiveSecurityManager() throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public Policy getPolicyFrom(java.security.cert.X509Certificate certificate) throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public long startNewSession(Communication policy) throws java.io.IOException, RenegotiateSessionException, SecurityNotAvailableException
java.io.IOException
RenegotiateSessionException
SecurityNotAvailableException
public ConfidentialityTicket negociateKeyReceiverSide(ConfidentialityTicket confidentialityTicket, long sessionID) throws java.io.IOException, KeyExchangeException, SecurityNotAvailableException
java.io.IOException
KeyExchangeException
SecurityNotAvailableException
public java.security.PublicKey getPublicKey() throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public byte[] randomValue(long sessionID, byte[] cl_rand) throws java.lang.Exception, SecurityNotAvailableException
java.lang.Exception
SecurityNotAvailableException
public byte[][] publicKeyExchange(long sessionID, UniversalBody distantBody, byte[] my_pub, byte[] my_cert, byte[] sig_code) throws java.lang.Exception, SecurityNotAvailableException
java.lang.Exception
SecurityNotAvailableException
public byte[][] secretKeyExchange(long sessionID, byte[] tmp, byte[] tmp1, byte[] tmp2, byte[] tmp3, byte[] tmp4) throws java.lang.Exception, SecurityNotAvailableException
java.lang.Exception
SecurityNotAvailableException
public Communication getPolicyTo(java.lang.String type, java.lang.String from, java.lang.String to) throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public java.lang.String getVNName() throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public byte[] getCertificateEncoded() throws java.io.IOException, SecurityNotAvailableException
java.io.IOException
SecurityNotAvailableException
public SecurityContext getPolicy(SecurityContext securityContext) throws SecurityNotAvailableException, java.io.IOException
SecurityNotAvailableException
java.io.IOException
public java.util.ArrayList getEntities() throws SecurityNotAvailableException, java.io.IOException
SecurityNotAvailableException
java.io.IOException
public int receiveFTMessage(FTMessage fte) throws java.io.IOException
fte
- the received message
java.io.IOException
public void changeProxiedBody(Body newBody) throws java.io.IOException
newBody
- the body referenced after the call
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |