00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 package org.objectweb.proactive.ext.security;
00032
00033 import java.io.IOException;
00034 import java.io.Serializable;
00035 import java.security.PublicKey;
00036 import java.security.cert.X509Certificate;
00037 import java.util.ArrayList;
00038
00039 import org.objectweb.proactive.Body;
00040 import org.objectweb.proactive.core.UniqueID;
00041 import org.objectweb.proactive.core.body.BodyAdapter;
00042 import org.objectweb.proactive.core.body.UniversalBody;
00043 import org.objectweb.proactive.core.body.ft.internalmsg.FTMessage;
00044 import org.objectweb.proactive.core.body.future.Future;
00045 import org.objectweb.proactive.core.body.future.FuturePool;
00046 import org.objectweb.proactive.core.body.reply.Reply;
00047 import org.objectweb.proactive.core.body.request.BlockingRequestQueue;
00048 import org.objectweb.proactive.core.body.request.Request;
00049 import org.objectweb.proactive.core.component.representative.ItfID;
00050 import org.objectweb.proactive.core.component.request.Shortcut;
00051 import org.objectweb.proactive.core.event.MessageEventListener;
00052 import org.objectweb.proactive.core.exceptions.NonFunctionalException;
00053 import org.objectweb.proactive.core.exceptions.manager.NFEListener;
00054 import org.objectweb.proactive.core.mop.MethodCall;
00055 import org.objectweb.proactive.ext.security.crypto.ConfidentialityTicket;
00056 import org.objectweb.proactive.ext.security.crypto.KeyExchangeException;
00057 import org.objectweb.proactive.ext.security.exceptions.RenegotiateSessionException;
00058 import org.objectweb.proactive.ext.security.exceptions.SecurityNotAvailableException;
00059 import org.objectweb.proactive.ext.security.securityentity.Entity;
00060
00061
00067 public class EncryptedBody implements Body, Serializable {
00068
00069 protected boolean isEncrypted = false;
00070
00071
00072 protected long sessionID;
00073
00074
00075 protected byte[] encryptedBody;
00076
00077 public EncryptedBody() {
00078 }
00079
00083 public EncryptedBody(byte[] encryptedBody, long sessionID) {
00084 this.encryptedBody = encryptedBody;
00085 this.sessionID = sessionID;
00086 isEncrypted = (encryptedBody != null);
00087 }
00088
00089
00090
00091
00092 public void terminate() {
00093 }
00094
00095
00096
00097
00098 public boolean isAlive() {
00099 return false;
00100 }
00101
00102
00103
00104
00105 public boolean isActive() {
00106 return false;
00107 }
00108
00109
00110
00111
00112 public void blockCommunication() {
00113 }
00114
00115
00116
00117
00118 public void acceptCommunication() {
00119 }
00120
00121
00122
00123
00124 public void enterInThreadStore() {
00125 }
00126
00127
00128
00129
00130 public void exitFromThreadStore() {
00131 }
00132
00133
00134
00135
00136 public UniversalBody checkNewLocation(UniqueID uniqueID) {
00137 return null;
00138 }
00139
00140
00141
00142
00143 public void setPolicyServer(PolicyServer server) {
00144 }
00145
00146
00147
00148
00149 public FuturePool getFuturePool() {
00150 return null;
00151 }
00152
00153
00154
00155
00156 public BlockingRequestQueue getRequestQueue() {
00157 return null;
00158 }
00159
00160
00161
00162
00163 public Object getReifiedObject() {
00164 return null;
00165 }
00166
00167
00168
00169
00170 public String getName() {
00171 return null;
00172 }
00173
00174
00175
00176
00177 public void sendRequest(MethodCall methodCall, Future future,
00178 UniversalBody destinationBody)
00179 throws IOException, RenegotiateSessionException {
00180 }
00181
00182
00183
00184
00185 public void serve(Request request) {
00186 }
00187
00188
00189
00190
00191 public int receiveRequest(Request request)
00192 throws IOException, RenegotiateSessionException {
00193 return 0;
00194 }
00195
00196
00197
00198
00199 public int receiveReply(Reply r) throws IOException {
00200 return 0;
00201 }
00202
00203
00204
00205
00206 public String getNodeURL() {
00207 return null;
00208 }
00209
00210
00211
00212
00213 public UniqueID getID() {
00214 return null;
00215 }
00216
00217
00218
00219
00220 public void updateLocation(UniqueID id, UniversalBody body)
00221 throws IOException {
00222 }
00223
00224
00225
00226
00227 public void enableAC() throws IOException {
00228 }
00229
00230
00231
00232
00233 public void disableAC() throws IOException {
00234 }
00235
00236
00237
00238
00239 public void setImmediateService(String methodName)
00240 throws IOException {
00241 }
00242
00243
00244
00245
00246 public void terminateSession(long sessionID)
00247 throws IOException, SecurityNotAvailableException {
00248 }
00249
00250
00251
00252
00253 public X509Certificate getCertificate()
00254 throws SecurityNotAvailableException, IOException {
00255 return null;
00256 }
00257
00258
00259
00260
00261 public ProActiveSecurityManager getProActiveSecurityManager()
00262 throws SecurityNotAvailableException, IOException {
00263 return null;
00264 }
00265
00266
00267
00268
00269 public long startNewSession(Communication policy)
00270 throws SecurityNotAvailableException, IOException,
00271 RenegotiateSessionException {
00272 return 0;
00273 }
00274
00275
00276
00277
00278 public ConfidentialityTicket negociateKeyReceiverSide(
00279 ConfidentialityTicket confidentialityTicket, long sessionID)
00280 throws SecurityNotAvailableException, KeyExchangeException, IOException {
00281 return null;
00282 }
00283
00284
00285
00286
00287 public PublicKey getPublicKey()
00288 throws SecurityNotAvailableException, IOException {
00289 return null;
00290 }
00291
00292
00293
00294
00295 public byte[] randomValue(long sessionID, byte[] clientRandomValue) {
00296 return null;
00297 }
00298
00299
00300
00301
00302 public byte[][] publicKeyExchange(long sessionID, byte[] myPublicKey,
00303 byte[] myCertificate, byte[] signature)
00304 throws SecurityNotAvailableException, IOException,
00305 RenegotiateSessionException {
00306 return null;
00307 }
00308
00309
00310
00311
00312 public byte[][] secretKeyExchange(long sessionID, byte[] encodedAESKey,
00313 byte[] encodedIVParameters, byte[] encodedClientMacKey,
00314 byte[] encodedLockData, byte[] parametersSignature)
00315 throws SecurityNotAvailableException, RenegotiateSessionException {
00316 return null;
00317 }
00318
00319
00320
00321
00322 public Communication getPolicyTo(String type, String from, String to)
00323 throws SecurityNotAvailableException, IOException {
00324 return null;
00325 }
00326
00327
00328
00329
00330 public SecurityContext getPolicy(SecurityContext securityContext)
00331 throws SecurityNotAvailableException, IOException {
00332 return null;
00333 }
00334
00335
00336
00337
00338 public String getVNName() throws SecurityNotAvailableException, IOException {
00339 return null;
00340 }
00341
00342
00343
00344
00345 public byte[] getCertificateEncoded()
00346 throws SecurityNotAvailableException, IOException {
00347 return null;
00348 }
00349
00350
00351
00352
00353 public ArrayList<Entity> getEntities()
00354 throws SecurityNotAvailableException, IOException {
00355 return null;
00356 }
00357
00358
00359
00360
00361 public void addMessageEventListener(MessageEventListener listener) {
00362 }
00363
00364
00365
00366
00367 public void removeMessageEventListener(MessageEventListener listener) {
00368 }
00369
00370
00371
00372
00373 public String getJobID() {
00374 return null;
00375 }
00376
00377
00378
00379
00380 public void updateNodeURL(String newNodeURL) {
00381 }
00382
00383
00384
00385
00386 public Object receiveFTMessage(FTMessage ev) throws IOException {
00387 return null;
00388 }
00389
00390 public UniversalBody getShortcutTargetBody(
00391 ItfID functionalItfID) {
00392 return null;
00393 }
00394
00395 public void createShortcut(Shortcut shortcut) throws IOException {
00396 }
00397
00398 public void setImmediateService(String methodName, Class[] parametersTypes)
00399 throws IOException {
00400 }
00401
00402 public void removeImmediateService(String methodName,
00403 Class[] parametersTypes) throws IOException {
00404 }
00405
00406 public BodyAdapter getRemoteAdapter() {
00407 return null;
00408 }
00409
00410 public void addNFEListener(NFEListener listener) {
00411 }
00412
00413 public void removeNFEListener(NFEListener listener) {
00414 }
00415
00416 public int fireNFE(NonFunctionalException e) {
00417 return 0;
00418 }
00419
00420
00421
00422
00423 public long getNextSequenceID() {
00424 return 0;
00425 }
00426
00427
00428 }