1 31 package org.objectweb.proactive.core.body; 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.reply.Reply; 40 import org.objectweb.proactive.core.body.request.Request; 41 import org.objectweb.proactive.ext.security.Communication; 42 import org.objectweb.proactive.ext.security.CommunicationForbiddenException; 43 import org.objectweb.proactive.ext.security.Policy; 44 import org.objectweb.proactive.ext.security.ProActiveSecurityManager; 45 import org.objectweb.proactive.ext.security.RenegotiateSessionException; 46 import org.objectweb.proactive.ext.security.SecurityContext; 47 import org.objectweb.proactive.ext.security.SecurityNotAvailableException; 48 import org.objectweb.proactive.ext.security.crypto.AuthenticationException; 49 import org.objectweb.proactive.ext.security.crypto.ConfidentialityTicket; 50 import org.objectweb.proactive.ext.security.crypto.KeyExchangeException; 51 52 53 65 public interface UniversalBody { 66 67 73 public void receiveRequest(Request request) throws java.io.IOException , RenegotiateSessionException ; 74 75 80 public void receiveReply(Reply r) throws java.io.IOException ; 81 82 87 public String getNodeURL(); 88 89 94 public UniqueID getID(); 95 96 104 public void updateLocation(UniqueID id, UniversalBody body) 105 throws java.io.IOException ; 106 107 111 public UniversalBody getRemoteAdapter(); 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 IOException ; 129 130 public void initiateSession(int type,UniversalBody body) 132 throws java.io.IOException , CommunicationForbiddenException, 133 AuthenticationException, RenegotiateSessionException, 134 SecurityNotAvailableException; 135 136 public void terminateSession(long sessionID) 137 throws java.io.IOException , SecurityNotAvailableException; 138 139 public X509Certificate getCertificate() 140 throws SecurityNotAvailableException, java.io.IOException ; 141 142 public ProActiveSecurityManager getProActiveSecurityManager() 143 throws SecurityNotAvailableException, java.io.IOException ; 144 145 public Policy getPolicyFrom(X509Certificate certificate) 146 throws SecurityNotAvailableException, java.io.IOException ; 147 148 public long startNewSession(Communication policy) 149 throws SecurityNotAvailableException, java.io.IOException , 150 RenegotiateSessionException; 151 152 public ConfidentialityTicket negociateKeyReceiverSide( 153 ConfidentialityTicket confidentialityTicket, long sessionID) 154 throws SecurityNotAvailableException, KeyExchangeException, 155 java.io.IOException ; 156 157 public PublicKey getPublicKey() 158 throws SecurityNotAvailableException, java.io.IOException ; 159 160 public byte[] randomValue(long sessionID, byte[] cl_rand) 161 throws SecurityNotAvailableException, Exception ; 162 163 public byte[][] publicKeyExchange(long sessionID, 164 UniversalBody distantBody, byte[] my_pub, byte[] my_cert, 165 byte[] sig_code) 166 throws SecurityNotAvailableException, Exception , 167 RenegotiateSessionException; 168 169 byte[][] secretKeyExchange(long sessionID, byte[] tmp, byte[] tmp1, 170 byte[] tmp2, byte[] tmp3, byte[] tmp4) 171 throws SecurityNotAvailableException, Exception , 172 RenegotiateSessionException; 173 174 public Communication getPolicyTo(String type, String from, String to) 175 throws SecurityNotAvailableException, java.io.IOException ; 176 177 178 public SecurityContext getPolicy(SecurityContext securityContext) 179 throws SecurityNotAvailableException, java.io.IOException ; 180 181 184 public String getVNName() 185 throws SecurityNotAvailableException, java.io.IOException ; 186 187 190 public byte[] getCertificateEncoded() 191 throws SecurityNotAvailableException, IOException ; 192 193 public ArrayList getEntities() throws SecurityNotAvailableException, IOException ; 194 } 195 | Popular Tags |