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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Session
public Session()
Session
public Session(long sessionID,
Communication policy)
throws java.lang.Exception
- Throws:
java.lang.Exception
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.