|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.ext.security.ProActiveSecurityManager
Field Summary | |
protected java.security.cert.X509Certificate |
certificate
|
protected byte[] |
encodedCertificate
|
protected static org.apache.log4j.Logger |
logger
|
protected UniversalBody |
myBody
|
protected java.security.cert.X509Certificate |
parentCertificate
|
protected PolicyServer |
policyServer
|
protected java.security.PrivateKey |
privateKey
|
protected byte[] |
privateKeyEncoded
|
protected java.security.PublicKey |
publicKey
|
protected RandomLongGenerator |
randomLongGenerator
|
protected java.util.Hashtable |
sessions
|
protected java.security.cert.X509Certificate[] |
trustedCertificationAuthority
|
protected java.lang.String |
VNName
|
Constructor Summary | |
ProActiveSecurityManager()
This a the default constructor to use with the ProActiveSecurityManager |
|
ProActiveSecurityManager(PolicyServer server)
|
|
ProActiveSecurityManager(java.lang.String file)
|
|
ProActiveSecurityManager(java.security.cert.X509Certificate certificate,
java.security.PrivateKey pk,
PolicyServer ps)
Method ProActiveSecurityManager. |
Method Summary | |
byte[] |
decrypt(long sessionID,
byte[][] message)
Method decrypt. |
static java.lang.String |
displayByte(byte[] tab)
|
byte[][] |
encrypt(long sessionID,
java.lang.Object object)
Method encrypt. |
java.security.cert.X509Certificate |
getCertificate()
|
byte[] |
getCertificateEncoded()
|
java.util.ArrayList |
getEntities()
|
java.util.Hashtable |
getOpenedConnexion()
|
SecurityContext |
getPolicy(SecurityContext securityContext)
Method getPolicyTo. |
Communication |
getPolicyFrom(java.lang.String type,
java.lang.String from,
java.lang.String to)
|
PolicyServer |
getPolicyServer()
|
Communication |
getPolicyTo(java.lang.String type,
java.lang.String from,
java.lang.String to)
Method getPolicyTo. |
Policy |
getPolicyTo(java.security.cert.X509Certificate certificate)
Method getPolicyTo. |
java.security.PublicKey |
getPublicKey()
Method getPublicKey. |
Session |
getSession(long id)
|
long |
getSessionIDTo(java.security.cert.X509Certificate cert)
|
java.lang.String |
getVNName()
|
void |
initiateSession(int type,
UniversalBody distantBody)
Method initiateSession. |
ConfidentialityTicket |
keyNegociationReceiverSide(ConfidentialityTicket confidentialityTicket,
long randomID)
|
boolean |
keyNegociationSenderSide(UniversalBody distantOA,
long sessionID)
Method keyNegociationSenderSide. starts the challenge to negociate a session key. |
AuthenticationTicket |
mutualAuthenticationReceiverSide(AuthenticationTicket authenticationTicket,
long randomID)
|
boolean |
mutualAuthenticationSenderSide(UniversalBody distantBody,
java.security.cert.X509Certificate distantBodyCertificate)
|
byte[][] |
publicKeyExchange(long sessionID,
UniversalBody distantBody,
byte[] pub_key,
byte[] cert,
byte[] sig_code)
|
byte[] |
randomValue(long sessionID,
byte[] cl_rand)
|
byte[][] |
secretKeyExchange(long sessionID,
byte[] aesKey,
byte[] iv,
byte[] macKey,
byte[] lockData,
byte[] signature)
Method secretKeyExchange. exchamge secret between objects |
void |
setBody(UniversalBody body)
|
void |
setParentCertificate(java.security.cert.X509Certificate certificate)
|
void |
setPolicyServer(PolicyServer policyServer)
Set object policy server |
void |
setVNName(java.lang.String string)
allows to set the name of the current virtual node |
long |
startNewSession(Communication po)
|
void |
terminateSession(long sessionID)
|
void |
terminateSession(UniversalBody body,
long sessionID)
|
AuthenticationTicket |
unilateralAuthenticationReceiverSide(long randomID,
long rb,
java.lang.String emittor)
|
boolean |
unilateralAuthenticationSenderSide(UniversalBody distantBody)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
protected java.util.Hashtable sessions
protected transient RandomLongGenerator randomLongGenerator
protected PolicyServer policyServer
protected java.security.cert.X509Certificate certificate
protected byte[] encodedCertificate
protected java.security.PrivateKey privateKey
protected transient java.security.cert.X509Certificate parentCertificate
protected java.security.PublicKey publicKey
protected byte[] privateKeyEncoded
protected java.security.cert.X509Certificate[] trustedCertificationAuthority
protected transient UniversalBody myBody
protected java.lang.String VNName
Constructor Detail |
public ProActiveSecurityManager()
public ProActiveSecurityManager(java.security.cert.X509Certificate certificate, java.security.PrivateKey pk, PolicyServer ps)
java.io.IOException
- if the file doesn't existpublic ProActiveSecurityManager(java.lang.String file) throws java.io.IOException
public ProActiveSecurityManager(PolicyServer server)
server
- Method Detail |
public void setBody(UniversalBody body)
public SecurityContext getPolicy(SecurityContext securityContext) throws SecurityNotAvailableException
securityContext
- the object certificate we want to get the policy from
SecurityNotAvailableException
public Policy getPolicyTo(java.security.cert.X509Certificate certificate)
certificate
- the object certificate we want to get the policy from
public Communication getPolicyTo(java.lang.String type, java.lang.String from, java.lang.String to) throws SecurityNotAvailableException
SecurityNotAvailableException
public void initiateSession(int type, UniversalBody distantBody) throws CommunicationForbiddenException, AuthenticationException, RenegotiateSessionException, SecurityNotAvailableException
distantBody
-
CommunicationForbiddenException
AuthenticationException
RenegotiateSessionException
SecurityNotAvailableException
public java.security.cert.X509Certificate getCertificate()
public void terminateSession(UniversalBody body, long sessionID)
public void terminateSession(long sessionID)
public long startNewSession(Communication po)
public byte[][] encrypt(long sessionID, java.lang.Object object)
sessionID
- the session we use to encrypt the Objectobject
- the object to encrypt
public byte[] decrypt(long sessionID, byte[][] message) throws RenegotiateSessionException
sessionID
- the session we use to decrypt the messagemessage
- the message to decrypt
RenegotiateSessionException
public boolean mutualAuthenticationSenderSide(UniversalBody distantBody, java.security.cert.X509Certificate distantBodyCertificate) throws AuthenticationException
AuthenticationException
public boolean unilateralAuthenticationSenderSide(UniversalBody distantBody) throws AuthenticationException
AuthenticationException
public boolean keyNegociationSenderSide(UniversalBody distantOA, long sessionID) throws KeyExchangeException
distantOA
- distant active object we want to communicate to.sessionID
- the id of the session we will use
KeyExchangeException
public AuthenticationTicket mutualAuthenticationReceiverSide(AuthenticationTicket authenticationTicket, long randomID) throws AuthenticationException
AuthenticationException
public AuthenticationTicket unilateralAuthenticationReceiverSide(long randomID, long rb, java.lang.String emittor) throws AuthenticationException
AuthenticationException
public ConfidentialityTicket keyNegociationReceiverSide(ConfidentialityTicket confidentialityTicket, long randomID) throws KeyExchangeException
KeyExchangeException
public byte[] randomValue(long sessionID, byte[] cl_rand) throws java.lang.Exception
java.lang.Exception
public byte[][] publicKeyExchange(long sessionID, UniversalBody distantBody, byte[] pub_key, byte[] cert, byte[] sig_code) throws java.lang.Exception
java.lang.Exception
public static java.lang.String displayByte(byte[] tab)
public byte[][] secretKeyExchange(long sessionID, byte[] aesKey, byte[] iv, byte[] macKey, byte[] lockData, byte[] signature)
sessionID
- the sessionaesKey
- the private keyiv
- macKey
- the MAC keylockData
- signature
- signature of aesKey,iv, macKey and lockData
public long getSessionIDTo(java.security.cert.X509Certificate cert)
public java.security.PublicKey getPublicKey()
public void setParentCertificate(java.security.cert.X509Certificate certificate)
public java.util.Hashtable getOpenedConnexion()
public void setVNName(java.lang.String string)
string
- the name of the current Virtual Node if anypublic java.lang.String getVNName()
public PolicyServer getPolicyServer()
public byte[] getCertificateEncoded()
public void setPolicyServer(PolicyServer policyServer)
policyServer
- public Communication getPolicyFrom(java.lang.String type, java.lang.String from, java.lang.String to)
type
- from
- to
-
public java.util.ArrayList getEntities()
public Session getSession(long id)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |