org.objectweb.proactive.ext.security.crypto
Class Session

java.lang.Object
  extended by org.objectweb.proactive.ext.security.crypto.Session
All Implemented Interfaces:
java.io.Serializable

public class Session
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int ACT_AS_CLIENT
           
static int ACT_AS_SERVER
           
 javax.crypto.SecretKey cl_aes_key
           
 javax.crypto.Cipher cl_cipher
           
 javax.crypto.SecretKey cl_hmac_key
           
 javax.crypto.spec.IvParameterSpec cl_iv
           
 javax.crypto.Mac cl_mac
           
 byte[] cl_mac_enc
           
 byte[] cl_rand
           
 byte[] cl_sec_key
           
 java.security.AlgorithmParameters clCipherAlgParams
           
 java.security.AlgorithmParameters clMacAlgParams
           
 java.security.cert.X509Certificate distantOACertificate
           
 java.security.PublicKey distantOAPublicKey
           
 byte[] encodedClCipherAlgParams
           
 byte[] encodedClMacAlgParams
           
 byte[] encodedSeCipherAlgParams
           
 byte[] encodedSeMacAlgParams
           
protected  boolean isSessionValidated
           
 javax.crypto.Cipher rsa_eng
           
 javax.crypto.SecretKey se_aes_key
           
 javax.crypto.Cipher se_cipher
           
 javax.crypto.SecretKey se_hmac_key
           
 javax.crypto.spec.IvParameterSpec se_iv
           
 javax.crypto.Mac se_mac
           
 byte[] se_mac_enc
           
 byte[] se_rand
           
 byte[] se_sec_key
           
 java.security.SecureRandom sec_rand
           
 java.security.AlgorithmParameters seCipherAlgParams
           
 SecurityContext securityContext
           
 java.security.AlgorithmParameters seMacAlgParams
           
 long sessionID
           
protected static java.lang.Object synchronizationObject
           
 
Constructor Summary
Session()
           
Session(long sessionID, Communication policy)
           
 
Method Summary
static java.lang.String displayByte(byte[] in)
           
 java.security.cert.X509Certificate get_otherPublicCertificate(long id)
           
 Communication getCommunication()
           
 java.security.cert.X509Certificate getDistantOACertificate()
           
 java.security.PublicKey getDistantOAPublicKey()
           
 SecurityContext getSecurityContext()
           
 long getSessionID()
           
static boolean isEqual(byte[] a, byte[] b)
           
 boolean isID(long ID)
           
 boolean isSessionValidated()
           
 byte[] readPDU(byte[] in, byte[] mac, int type)
           
 void setDistantOACertificate(java.security.cert.X509Certificate distantBodyCertificate)
           
 void setDistantOAPublicKey(java.security.PublicKey distantOAPublicKey)
           
 void setPolicy(PolicyRule resultPolicy)
          Method setPolicy.
 void setSecurityContext(SecurityContext securityContext)
           
 void setSessionValidated(boolean isSessionValidated)
           
 java.lang.String toString()
           
 byte[][] writePDU(byte[] in, int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessionID

public long sessionID

synchronizationObject

protected static java.lang.Object synchronizationObject

distantOACertificate

public java.security.cert.X509Certificate distantOACertificate

distantOAPublicKey

public java.security.PublicKey distantOAPublicKey

cl_cipher

public transient javax.crypto.Cipher cl_cipher

se_cipher

public transient javax.crypto.Cipher se_cipher

rsa_eng

public transient javax.crypto.Cipher rsa_eng

cl_mac

public transient javax.crypto.Mac cl_mac

se_mac

public transient javax.crypto.Mac se_mac

cl_sec_key

public byte[] cl_sec_key

se_sec_key

public byte[] se_sec_key

cl_mac_enc

public byte[] cl_mac_enc

se_mac_enc

public byte[] se_mac_enc

se_iv

public transient javax.crypto.spec.IvParameterSpec se_iv

cl_iv

public transient javax.crypto.spec.IvParameterSpec cl_iv

isSessionValidated

protected boolean isSessionValidated

seCipherAlgParams

public java.security.AlgorithmParameters seCipherAlgParams

clCipherAlgParams

public java.security.AlgorithmParameters clCipherAlgParams

seMacAlgParams

public java.security.AlgorithmParameters seMacAlgParams

clMacAlgParams

public java.security.AlgorithmParameters clMacAlgParams

encodedSeCipherAlgParams

public byte[] encodedSeCipherAlgParams

encodedClCipherAlgParams

public byte[] encodedClCipherAlgParams

encodedSeMacAlgParams

public byte[] encodedSeMacAlgParams

encodedClMacAlgParams

public byte[] encodedClMacAlgParams

se_rand

public byte[] se_rand

cl_rand

public byte[] cl_rand

se_hmac_key

public javax.crypto.SecretKey se_hmac_key

se_aes_key

public javax.crypto.SecretKey se_aes_key

cl_hmac_key

public javax.crypto.SecretKey cl_hmac_key

cl_aes_key

public javax.crypto.SecretKey cl_aes_key

sec_rand

public transient java.security.SecureRandom sec_rand

securityContext

public SecurityContext securityContext

ACT_AS_CLIENT

public static int ACT_AS_CLIENT

ACT_AS_SERVER

public static int ACT_AS_SERVER
Constructor Detail

Session

public Session()

Session

public Session(long sessionID,
               Communication policy)
        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

isID

public boolean isID(long ID)

get_otherPublicCertificate

public java.security.cert.X509Certificate get_otherPublicCertificate(long id)

getSessionID

public long getSessionID()

setDistantOACertificate

public void setDistantOACertificate(java.security.cert.X509Certificate distantBodyCertificate)

getDistantOACertificate

public java.security.cert.X509Certificate getDistantOACertificate()

getDistantOAPublicKey

public java.security.PublicKey getDistantOAPublicKey()

setDistantOAPublicKey

public void setDistantOAPublicKey(java.security.PublicKey distantOAPublicKey)

writePDU

public byte[][] writePDU(byte[] in,
                         int type)
                  throws java.lang.Exception
Throws:
java.lang.Exception

isEqual

public static boolean isEqual(byte[] a,
                              byte[] b)

readPDU

public byte[] readPDU(byte[] in,
                      byte[] mac,
                      int type)
               throws java.io.IOException
Throws:
java.io.IOException

displayByte

public static java.lang.String displayByte(byte[] in)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setPolicy

public void setPolicy(PolicyRule resultPolicy)
Method setPolicy.

Parameters:
resultPolicy -

getCommunication

public Communication getCommunication()

getSecurityContext

public SecurityContext getSecurityContext()

setSecurityContext

public void setSecurityContext(SecurityContext securityContext)
Parameters:
securityContext - The securityContext to set.

isSessionValidated

public boolean isSessionValidated()

setSessionValidated

public void setSessionValidated(boolean isSessionValidated)


Copyright 2001-2007 INRIA All Rights Reserved.