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

java.lang.Object
  |
  +--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
 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
           
 UniversalBody distantBody
           
 java.security.cert.X509Certificate distantOACertificate
           
 java.security.PublicKey distantOAPublicKey
           
 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
           
 long sessionID
           
 
Constructor Summary
Session()
           
Session(long sessionID, Communication policy)
           
 
Method Summary
 java.security.cert.X509Certificate get_otherPublicCertificate(long id)
           
 java.security.cert.X509Certificate getDistantOACertificate()
           
 java.security.PublicKey getDistantOAPublicKey()
           
 long getSessionID()
           
static boolean isEqual(byte[] a, byte[] b)
           
 boolean isID(long ID)
           
 byte[] readPDU(byte[] in, byte[] mac)
           
 void setDistantOACertificate(java.security.cert.X509Certificate distantBodyCertificate)
           
 void setDistantOAPublicKey(java.security.PublicKey distantOAPublicKey)
           
 void setPolicy(Policy resultPolicy)
          Method setPolicy.
 java.lang.String toString()
           
 byte[][] writePDU(byte[] in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessionID

public long sessionID

distantOACertificate

public java.security.cert.X509Certificate distantOACertificate

distantOAPublicKey

public java.security.PublicKey distantOAPublicKey

distantBody

public UniversalBody distantBody

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

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
Constructor Detail

Session

public Session()

Session

public Session(long sessionID,
               Communication policy)
        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)
                  throws java.lang.Exception
java.lang.Exception

isEqual

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

readPDU

public byte[] readPDU(byte[] in,
                      byte[] mac)
               throws java.lang.Exception
java.lang.Exception

toString

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

setPolicy

public void setPolicy(Policy resultPolicy)
Method setPolicy.

Parameters:
resultPolicy -


Copyright © April 2004 INRIA All Rights Reserved.