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.security.PublicKey;
00035 import java.security.cert.X509Certificate;
00036 import java.util.ArrayList;
00037
00038 import org.objectweb.proactive.ext.security.crypto.KeyExchangeException;
00039 import org.objectweb.proactive.ext.security.exceptions.RenegotiateSessionException;
00040 import org.objectweb.proactive.ext.security.exceptions.SecurityNotAvailableException;
00041 import org.objectweb.proactive.ext.security.securityentity.Entity;
00042
00043
00049 public interface SecurityEntity {
00050
00057 public X509Certificate getCertificate()
00058 throws SecurityNotAvailableException, IOException;
00059
00067 public long startNewSession(Communication policy)
00068 throws SecurityNotAvailableException, RenegotiateSessionException,
00069 IOException;
00070
00076 public PublicKey getPublicKey()
00077 throws SecurityNotAvailableException, IOException;
00078
00087 public byte[] randomValue(long sessionID, byte[] clientRandomValue)
00088 throws SecurityNotAvailableException, RenegotiateSessionException,
00089 IOException;
00090
00104 public byte[][] publicKeyExchange(long sessionID, byte[] myPublicKey,
00105 byte[] myCertificate, byte[] signature)
00106 throws SecurityNotAvailableException, RenegotiateSessionException,
00107 KeyExchangeException, IOException;
00108
00127 public byte[][] secretKeyExchange(long sessionID, byte[] encodedAESKey,
00128 byte[] encodedIVParameters, byte[] encodedClientMacKey,
00129 byte[] encodedLockData, byte[] parametersSignature)
00130 throws SecurityNotAvailableException, RenegotiateSessionException,
00131 IOException;
00132
00141 public SecurityContext getPolicy(SecurityContext securityContext)
00142 throws SecurityNotAvailableException, IOException;
00143
00148 public byte[] getCertificateEncoded()
00149 throws SecurityNotAvailableException, IOException;
00150
00156 public ArrayList<Entity> getEntities()
00157 throws SecurityNotAvailableException, IOException;
00158
00164 public void terminateSession(long sessionID)
00165 throws SecurityNotAvailableException, IOException;
00166 }