net.handle.hdllib
Class SessionSetupInfo
java.lang.Object
net.handle.hdllib.SessionSetupInfo
public class SessionSetupInfo
- extends java.lang.Object
Class for passing session options to HandleResolver.
keyExchangeMode indicates what key exchange method to use:
KEY_EXCHANGE_NONE - No session
KEY_EXCHANGE_CIPHER_CLIENT - Exchange key is encrypted with client's
asymmetric key. Requires RSA.
KEY_EXCHANGE_CIPHER_SERVER - Exchange key is encrypted with server's
asymmetric key, which should be stored in
the NA handle. Requires RSA.
KEY_EXCHANGE_DH - Use diffie-hellman key exchange
The public variables used depend on the key mode. Polymorphism might be
a cleaner way to go than the different modes, but this should be simple
enough to rely on delegation.
The different constructors can be used as shortcuts for particular modes.
Constructor Summary |
SessionSetupInfo(AuthenticationInfo authInfo)
|
SessionSetupInfo(AuthenticationInfo authInfo,
byte[] exchangeHandle,
int exchangeIndex,
java.security.PrivateKey privateKey)
|
SessionSetupInfo(AuthenticationInfo authInfo,
java.lang.String exchangeHandle,
int exchangeIndex,
java.security.PrivateKey privateKey)
|
SessionSetupInfo(int mode,
AuthenticationInfo authInfo)
|
SessionSetupInfo(int mode,
AuthenticationInfo authInfo,
byte[] exchangekey,
java.security.PrivateKey privateKey)
|
SessionSetupInfo(int mode,
AuthenticationInfo authInfo,
java.security.PublicKey exchangekey,
java.security.PrivateKey privateKey)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
keyExchangeMode
public int keyExchangeMode
authInfo
public AuthenticationInfo authInfo
exchangeKeyHandle
public byte[] exchangeKeyHandle
exchangeKeyIndex
public int exchangeKeyIndex
publicExchangeKey
public byte[] publicExchangeKey
privateExchangeKey
public java.security.PrivateKey privateExchangeKey
timeout
public int timeout
encrypted
public boolean encrypted
authenticated
public boolean authenticated
SessionSetupInfo
public SessionSetupInfo(AuthenticationInfo authInfo,
byte[] exchangeHandle,
int exchangeIndex,
java.security.PrivateKey privateKey)
SessionSetupInfo
public SessionSetupInfo(AuthenticationInfo authInfo,
java.lang.String exchangeHandle,
int exchangeIndex,
java.security.PrivateKey privateKey)
SessionSetupInfo
public SessionSetupInfo(AuthenticationInfo authInfo)
throws java.lang.Exception
- Throws:
java.lang.Exception
SessionSetupInfo
public SessionSetupInfo(int mode,
AuthenticationInfo authInfo,
byte[] exchangekey,
java.security.PrivateKey privateKey)
SessionSetupInfo
public SessionSetupInfo(int mode,
AuthenticationInfo authInfo,
java.security.PublicKey exchangekey,
java.security.PrivateKey privateKey)
throws java.lang.Exception
- Throws:
java.lang.Exception
SessionSetupInfo
public SessionSetupInfo(int mode,
AuthenticationInfo authInfo)
reset
public void reset()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
initDHKeys
public void initDHKeys()
throws java.lang.Exception
- Throws:
java.lang.Exception