1 31 package org.objectweb.proactive.core.body.jini; 32 33 import org.objectweb.proactive.core.UniqueID; 34 import org.objectweb.proactive.core.body.UniversalBody; 35 import org.objectweb.proactive.core.body.reply.Reply; 36 import org.objectweb.proactive.core.body.request.Request; 37 import org.objectweb.proactive.ext.security.Communication; 38 import org.objectweb.proactive.ext.security.CommunicationForbiddenException; 39 import org.objectweb.proactive.ext.security.Policy; 40 import org.objectweb.proactive.ext.security.ProActiveSecurityManager; 41 import org.objectweb.proactive.ext.security.RenegotiateSessionException; 42 import org.objectweb.proactive.ext.security.SecurityContext; 43 import org.objectweb.proactive.ext.security.SecurityNotAvailableException; 44 import org.objectweb.proactive.ext.security.crypto.AuthenticationException; 45 import org.objectweb.proactive.ext.security.crypto.ConfidentialityTicket; 46 import org.objectweb.proactive.ext.security.crypto.KeyExchangeException; 47 48 import java.io.IOException ; 49 50 import java.security.PublicKey ; 51 import java.security.cert.X509Certificate ; 52 53 import java.util.ArrayList ; 54 55 56 67 public interface JiniBody extends java.rmi.Remote { 68 69 75 public void receiveRequest(Request r) 76 throws java.io.IOException , RenegotiateSessionException; 77 78 83 public void receiveReply(Reply r) throws java.io.IOException ; 84 85 91 public String getNodeURL() throws java.rmi.RemoteException ; 92 93 99 public UniqueID getID() throws java.rmi.RemoteException ; 100 101 110 public void updateLocation(UniqueID id, UniversalBody body) 111 throws java.io.IOException ; 112 113 116 public void enableAC() throws java.io.IOException ; 117 118 121 public void disableAC() throws java.io.IOException ; 122 123 127 public void setImmediateService(String methodName) 128 throws java.io.IOException ; 129 130 public void initiateSession(int type, UniversalBody body) 132 throws java.io.IOException , CommunicationForbiddenException, 133 AuthenticationException, java.rmi.RemoteException , 134 RenegotiateSessionException, SecurityNotAvailableException; 135 136 public void terminateSession(long sessionID) 137 throws java.io.IOException , SecurityNotAvailableException; 138 139 public X509Certificate getCertificate() 140 throws java.io.IOException , SecurityNotAvailableException; 141 142 public ProActiveSecurityManager getProActiveSecurityManager() 143 throws java.io.IOException , SecurityNotAvailableException; 144 145 public Policy getPolicyFrom(X509Certificate certificate) 146 throws java.io.IOException , SecurityNotAvailableException; 147 148 public long startNewSession(Communication policy) 149 throws java.io.IOException , RenegotiateSessionException, 150 SecurityNotAvailableException; 151 152 public ConfidentialityTicket negociateKeyReceiverSide( 153 ConfidentialityTicket confidentialityTicket, long sessionID) 154 throws java.io.IOException , KeyExchangeException, 155 SecurityNotAvailableException; 156 157 public PublicKey getPublicKey() 158 throws java.io.IOException , SecurityNotAvailableException; 159 160 public byte[] randomValue(long sessionID, byte[] cl_rand) 161 throws Exception , SecurityNotAvailableException; 162 163 public byte[][] publicKeyExchange(long sessionID, 164 UniversalBody distantBody, byte[] my_pub, byte[] my_cert, 165 byte[] sig_code) throws Exception , SecurityNotAvailableException; 166 167 public byte[][] secretKeyExchange(long sessionID, byte[] tmp, byte[] tmp1, 168 byte[] tmp2, byte[] tmp3, byte[] tmp4) 169 throws Exception , SecurityNotAvailableException; 170 171 public Communication getPolicyTo(String type, String from, String to) 172 throws java.io.IOException , SecurityNotAvailableException; 173 174 177 public String getVNName() 178 throws java.io.IOException , SecurityNotAvailableException; 179 180 183 public byte[] getCertificateEncoded() 184 throws java.io.IOException , SecurityNotAvailableException; 185 186 public SecurityContext getPolicy(SecurityContext securityContext) 187 throws SecurityNotAvailableException, IOException ; 188 189 public ArrayList getEntities() 190 throws SecurityNotAvailableException, IOException ; 191 } 192 | Popular Tags |