1 31 package org.objectweb.proactive.core.body.ibis; 32 33 import java.io.IOException ; 34 import java.security.PublicKey ; 35 import java.security.cert.X509Certificate ; 36 import java.util.ArrayList ; 37 38 import org.objectweb.proactive.core.UniqueID; 39 import org.objectweb.proactive.core.body.UniversalBody; 40 import org.objectweb.proactive.core.body.reply.Reply; 41 import org.objectweb.proactive.core.body.request.Request; 42 import org.objectweb.proactive.ext.security.Communication; 43 import org.objectweb.proactive.ext.security.CommunicationForbiddenException; 44 import org.objectweb.proactive.ext.security.Policy; 45 import org.objectweb.proactive.ext.security.ProActiveSecurityManager; 46 import org.objectweb.proactive.ext.security.RenegotiateSessionException; 47 import org.objectweb.proactive.ext.security.SecurityContext; 48 import org.objectweb.proactive.ext.security.SecurityNotAvailableException; 49 import org.objectweb.proactive.ext.security.crypto.AuthenticationException; 50 import org.objectweb.proactive.ext.security.crypto.ConfidentialityTicket; 51 import org.objectweb.proactive.ext.security.crypto.KeyExchangeException; 52 53 54 65 public interface IbisRemoteBody extends ibis.rmi.Remote { 66 67 73 public void receiveRequest(Request r) throws java.io.IOException ,RenegotiateSessionException; 74 75 80 public void receiveReply(Reply r) throws java.io.IOException ; 81 82 88 public String getNodeURL() throws ibis.rmi.RemoteException; 89 90 96 public UniqueID getID() throws ibis.rmi.RemoteException; 97 98 107 public void updateLocation(UniqueID id, UniversalBody body) 108 throws java.io.IOException ; 109 110 113 public void enableAC() throws java.io.IOException ; 114 115 118 public void disableAC() throws java.io.IOException ; 119 120 124 public void setImmediateService(String methodName) 125 throws java.io.IOException ; 126 127 public void initiateSession(int type,UniversalBody body) 129 throws java.io.IOException , CommunicationForbiddenException, 130 AuthenticationException, RenegotiateSessionException, 131 SecurityNotAvailableException; 132 133 public void terminateSession(long sessionID) 134 throws java.io.IOException , SecurityNotAvailableException; 135 136 public X509Certificate getCertificate() 137 throws java.io.IOException , SecurityNotAvailableException; 138 139 public ProActiveSecurityManager getProActiveSecurityManager() 140 throws java.io.IOException , SecurityNotAvailableException; 141 142 public Policy getPolicyFrom(X509Certificate certificate) 143 throws java.io.IOException , SecurityNotAvailableException; 144 145 public long startNewSession(Communication policy) 146 throws java.io.IOException , RenegotiateSessionException, 147 SecurityNotAvailableException; 148 149 public ConfidentialityTicket negociateKeyReceiverSide( 150 ConfidentialityTicket confidentialityTicket, long sessionID) 151 throws java.io.IOException , KeyExchangeException, 152 SecurityNotAvailableException; 153 154 public PublicKey getPublicKey() 155 throws IOException , SecurityNotAvailableException; 156 157 public byte[] randomValue(long sessionID, byte[] cl_rand) 158 throws Exception , SecurityNotAvailableException; 159 160 public byte[][] publicKeyExchange(long sessionID, 161 UniversalBody distantBody, byte[] my_pub, byte[] my_cert, 162 byte[] sig_code) throws Exception , SecurityNotAvailableException; 163 164 public byte[][] secretKeyExchange(long sessionID, byte[] tmp, byte[] tmp1, 165 byte[] tmp2, byte[] tmp3, byte[] tmp4) 166 throws Exception , SecurityNotAvailableException; 167 168 public Communication getPolicyTo(String type, String from, String to) 169 throws java.io.IOException , SecurityNotAvailableException; 170 171 public SecurityContext getPolicy(SecurityContext securityContext) 172 throws IOException , SecurityNotAvailableException; 173 174 175 176 179 public String getVNName() 180 throws java.io.IOException , SecurityNotAvailableException; 181 182 185 public byte[] getCertificateEncoded() 186 throws java.io.IOException , SecurityNotAvailableException; 187 188 public ArrayList getEntities() throws SecurityNotAvailableException, IOException ; 189 190 } 191 | Popular Tags |