org.objectweb.proactive.ext.security
Class InternalBodySecurity
java.lang.Object
org.objectweb.proactive.ext.security.InternalBodySecurity
- public class InternalBodySecurity
- extends java.lang.Object
Method Summary |
java.security.cert.X509Certificate |
getCertificate()
|
byte[] |
getCertificatEncoded()
|
UniversalBody |
getDistantBody()
|
java.util.ArrayList |
getEntities()
|
SecurityContext |
getPolicy(SecurityContext securityContext)
|
Policy |
getPolicyFrom(java.security.cert.X509Certificate certificate)
|
Communication |
getPolicyTo(java.lang.String type,
java.lang.String from,
java.lang.String to)
|
ProActiveSecurityManager |
getProActiveSecurityManager()
|
java.security.PublicKey |
getPublicKey()
|
java.lang.String |
getVNName()
|
void |
initiateSession(int type,
UniversalBody body)
|
boolean |
isLocalBody()
|
ConfidentialityTicket |
negociateKeyReceiverSide(ConfidentialityTicket confidentialityTicket,
long sessionID)
|
byte[][] |
publicKeyExchange(long sessionID,
UniversalBody dBody,
byte[] my_pub,
byte[] my_cert,
byte[] sig_code)
|
byte[] |
randomValue(long sessionID,
byte[] cl_rand)
|
byte[][] |
secretKeyExchange(long sessionID,
byte[] tmp,
byte[] tmp1,
byte[] tmp2,
byte[] tmp3,
byte[] tmp4)
|
void |
setDistantBody(UniversalBody distantBody)
|
long |
startNewSession(Communication policy)
|
void |
terminateSession(long sessionID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
distantBody
protected UniversalBody distantBody
InternalBodySecurity
public InternalBodySecurity(UniversalBody distantBody)
initiateSession
public void initiateSession(int type,
UniversalBody body)
throws java.io.IOException,
CommunicationForbiddenException,
AuthenticationException,
RenegotiateSessionException,
SecurityNotAvailableException
- Throws:
java.io.IOException
CommunicationForbiddenException
AuthenticationException
RenegotiateSessionException
SecurityNotAvailableException
terminateSession
public void terminateSession(long sessionID)
throws java.io.IOException,
SecurityNotAvailableException
- Throws:
java.io.IOException
SecurityNotAvailableException
getCertificate
public java.security.cert.X509Certificate getCertificate()
throws java.io.IOException,
SecurityNotAvailableException
- Throws:
java.io.IOException
SecurityNotAvailableException
getProActiveSecurityManager
public ProActiveSecurityManager getProActiveSecurityManager()
throws SecurityNotAvailableException,
java.io.IOException
- Throws:
SecurityNotAvailableException
java.io.IOException
getPolicyFrom
public Policy getPolicyFrom(java.security.cert.X509Certificate certificate)
throws SecurityNotAvailableException,
java.io.IOException
- Throws:
SecurityNotAvailableException
java.io.IOException
getPolicyTo
public Communication getPolicyTo(java.lang.String type,
java.lang.String from,
java.lang.String to)
throws SecurityNotAvailableException,
java.io.IOException
- Throws:
SecurityNotAvailableException
java.io.IOException
startNewSession
public long startNewSession(Communication policy)
throws SecurityNotAvailableException,
java.io.IOException,
RenegotiateSessionException
- Throws:
SecurityNotAvailableException
java.io.IOException
RenegotiateSessionException
negociateKeyReceiverSide
public ConfidentialityTicket negociateKeyReceiverSide(ConfidentialityTicket confidentialityTicket,
long sessionID)
throws SecurityNotAvailableException,
KeyExchangeException,
java.io.IOException
- Throws:
SecurityNotAvailableException
KeyExchangeException
java.io.IOException
getPublicKey
public java.security.PublicKey getPublicKey()
throws SecurityNotAvailableException,
java.io.IOException
- Throws:
SecurityNotAvailableException
java.io.IOException
randomValue
public byte[] randomValue(long sessionID,
byte[] cl_rand)
throws java.lang.Exception
- Throws:
java.lang.Exception
publicKeyExchange
public byte[][] publicKeyExchange(long sessionID,
UniversalBody dBody,
byte[] my_pub,
byte[] my_cert,
byte[] sig_code)
throws java.lang.Exception
- Throws:
java.lang.Exception
secretKeyExchange
public byte[][] secretKeyExchange(long sessionID,
byte[] tmp,
byte[] tmp1,
byte[] tmp2,
byte[] tmp3,
byte[] tmp4)
throws java.lang.Exception
- Throws:
java.lang.Exception
setDistantBody
public void setDistantBody(UniversalBody distantBody)
isLocalBody
public boolean isLocalBody()
getDistantBody
public UniversalBody getDistantBody()
- Returns:
- distant Body Adapter
getVNName
public java.lang.String getVNName()
throws java.io.IOException,
SecurityNotAvailableException
- Throws:
java.io.IOException
SecurityNotAvailableException
getCertificatEncoded
public byte[] getCertificatEncoded()
throws java.io.IOException,
SecurityNotAvailableException
- Returns:
- distant object's certificate as byte array
- Throws:
java.io.IOException
SecurityNotAvailableException
getPolicy
public SecurityContext getPolicy(SecurityContext securityContext)
throws java.io.IOException,
SecurityNotAvailableException
- Parameters:
securityContext
-
- Returns:
- securityContext with distant object context
- Throws:
java.io.IOException
SecurityNotAvailableException
getEntities
public java.util.ArrayList getEntities()
throws java.io.IOException,
SecurityNotAvailableException
- Throws:
java.io.IOException
SecurityNotAvailableException
Copyright ? October 2004 INRIA All Rights Reserved.