org.ssonet.net
Class SSONETContext

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--org.ssonet.net.SSONETContext
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class SSONETContext
extends java.util.Properties

Describes the communication circumstances, the connection.

Version:
$Id: SSONETContext.java,v 1.8 2004/02/11 17:08:02 tk4 Exp $
Author:
SSONET
See Also:
Serialized Form

Field Summary
protected  org.ssonet.net.Mechanism accountabilityAcceptMechanism
           
protected  org.ssonet.net.Mechanism accountabilitySignMechanism
           
protected  java.util.List anonymityListeners
          List of registered anonymityListeners
protected  int anonymityListenersUseCounter
           
protected  java.util.List certificateListeners
          List of registered certificateListeners
protected  int certificateListenersUseCounter
           
protected  org.ssonet.net.Mechanism confidentialityMechanism
           
protected  java.util.List connectionListeners
          List of registered connectionListeners
protected  int connectionListenersUseCounter
           
protected  java.util.List contextListeners
          List of registered contextListeners
protected  int contextListenersUseCounter
           
static boolean debug
           
protected  org.ssonet.io.IOFilterStream filterStream
          A Filter IO Stream to use above the ProtocolStream.
protected  org.ssonet.net.Mechanism integrityMechanism
           
protected  org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilityAcceptMechanismConfiguration
          The list of configurations for preferred mechanisms for security goal accountability for checking signatures
protected  org.ssonet.mechanisms.PreferenceList ownAccountabilityAcceptPreferenceList
          The mechanism preference list for security goal accountability for checking signatures
protected  org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilitySignMechanismConfiguration
          The list of configurations for preferred mechanisms for security goal accountability for signing
protected  org.ssonet.mechanisms.PreferenceList ownAccountabilitySignPreferenceList
          The mechanism preference list for security goal accountability for signing
protected  org.ssonet.net.ActionConfiguration ownActionConfiguration
          The security goal configuration for the connection.
protected  java.lang.Boolean ownAnonServiceConfiguration
          Security goal configuration for the anonymity service.
protected  java.util.Hashtable ownAnonymityMechanismConfiguration
          The mechanism configuration for security goal anonymity, as set in the baseConfiguration utility
protected  java.security.cert.X509Certificate ownCipherCertificate
          Certificate of the public cipher key.
protected  java.security.PrivateKey ownCiphKey
          Secret cipher key (used for key exchange).
protected  org.ssonet.mechanisms.MechanismConfiguration[] ownConfidentialityMechanismConfiguration
          The list of configurations for preferred mechanisms for security goal confidentiality
protected  org.ssonet.mechanisms.PreferenceList ownConfidentialityPreferenceList
          The mechanism preference list for security goal confidentiality
protected  org.ssonet.mechanisms.MechanismConfiguration[] ownIntegrityMechanismConfiguration
          The list of configurations for preferred mechanisms for security goal integrity
protected  org.ssonet.mechanisms.PreferenceList ownIntegrityPreferenceList
          The mechanism preference list for security goal integrity
protected  java.security.Key ownKeyExchangeAESKey
          Secret AES key (used for key exchange).
protected  java.security.PrivateKey ownSessionSigKey
          Session sign key.
protected  java.security.cert.X509Certificate ownSessionTestCertificate
          Certificate of the public session test key.
protected  java.security.PrivateKey ownSigKey
          sign key
protected  java.security.cert.X509Certificate ownTestCertificate
          Certificate of the public test key.
protected  java.security.cert.X509Certificate partnerCipherCertificate
          Cipherkey certificate of the communication partner.
protected  java.security.cert.X509Certificate partnerTestCertificate
          Testkey certificate (pseudonym) of the communication partner.
protected  org.ssonet.net.SSONETProtocolStream ssonetProtocolStream
          The protocol engine object of ssonet for this connection
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
SSONETContext()
          Creates a SSONETContext and inserts System.properties() into it.
SSONETContext(java.util.Properties p)
          Creates a SSONETContext and inserts user defined properties into it.
 
Method Summary
 void addAnonymityListener(org.ssonet.net.AnonymityListener al)
          Registers a AnonymityListener with this object.
 void addCertificateListener(org.ssonet.net.CertificateListener cl)
          Registers a addCertificateListener with this object.
 void addConnectionListener(org.ssonet.net.ConnectionListener cl)
          Registers a ConnectionListener with this object.
 void addSSONETContextListener(org.ssonet.net.SSONETContextListener cl)
          Registers a SSONETContextListener with this object.
 void anonymityLevelChanged(int level)
          Calls anonymityLevelChanged() method of all registered anonymityListeners.
 void anonymityStateChanged(int state)
          Calls anonymityStateChanged() method of all registered anonymityListeners.
 boolean checkCertificate(java.security.cert.X509Certificate cert)
          Calls checkCertificate() method of all registered CertificateListeners and compute a return value from the returnvalues of all registered CertificateListeners.
 void connectionStateChanged(int state)
          Calls connectionStateChanged() method of all registered connectionListeners.
 void contextChanged()
          Calls contextChanged() method of all registered SSONETContextListeners.
 void doMechanismsNegotiation()
          Invoke new mechanisms negotiation
 void doSecurityGoalNegotiation()
          Invoke new security goal (and mechanisms) negotiation
 org.ssonet.net.Mechanism getAccountabilityAcceptMechanism()
           
 org.ssonet.net.Mechanism getAccountabilitySignMechanism()
           
 org.ssonet.net.Mechanism getConfidentialityMechanism()
           
 int getConnectionState()
           
 org.ssonet.net.Mechanism getIntegrityMechanism()
           
 org.ssonet.io.IOFilterStream getIOFilterStream()
          Get the FilterIOStream.
 org.ssonet.mechanisms.MechanismConfiguration[] getOwnAccountabilityAcceptMechanismConfiguration()
          Get the list of configurations for preferred mechanisms for security goal accountability for checking signatures
 org.ssonet.mechanisms.PreferenceList getOwnAccountabilityAcceptPreferenceList()
          Get the mechanism preference list for security goal accountability for checking signatures
 org.ssonet.mechanisms.MechanismConfiguration[] getOwnAccountabilitySignMechanismConfiguration()
          Get the list of configurations for preferred mechanisms for security goal accountability for signing
 org.ssonet.mechanisms.PreferenceList getOwnAccountabilitySignPreferenceList()
          Set the mechanism preference list for security goal accountability for signing
 org.ssonet.net.ActionConfiguration getOwnActionConfiguration()
          Get the security goal configuration for the connection.
 java.lang.Boolean getOwnAnonServiceConfiguration()
          Get security goal configuration for the anonymity service.
 java.util.Hashtable getOwnAnonymityMechanismConfiguration()
          Get the mechanism preference list for security goal anonymity
 java.security.cert.X509Certificate getOwnCipherCertificate()
          Get Certificate of the public cipher key.
 java.security.PrivateKey getOwnCiphKey()
          Get Secret cipher key (used for key exchange).
 org.ssonet.mechanisms.MechanismConfiguration[] getOwnConfidentialityMechanismConfiguration()
          Get the list of configurations for preferred mechanisms for security goal confidentiality
 org.ssonet.mechanisms.PreferenceList getOwnConfidentialityPreferenceList()
          Get the mechanism preference list for security goal confidentiality
 org.ssonet.mechanisms.MechanismConfiguration[] getOwnIntegrityMechanismConfiguration()
          Get the list of configurations for preferred mechanisms for security goal integrity
 org.ssonet.mechanisms.PreferenceList getOwnIntegrityPreferenceList()
          Get the mechanism preference list for security goal integrity
 java.security.Key getOwnKeyExchangeAESKey()
          Get AES key (used for key exchange).
 java.security.PrivateKey getOwnSessionSigKey()
          Get session sign key
 java.security.cert.X509Certificate getOwnSessionTestCertificate()
          Get Certificate of the public session test key.
 java.security.PrivateKey getOwnSigKey()
          Get sign key
 java.security.cert.X509Certificate getOwnTestCertificate()
          Get Certificate of the public test key.
 java.security.cert.X509Certificate getPartnerCipherCertificate()
          Get cipherkey certificate of the communication partner.
 java.security.cert.X509Certificate getPartnerTestCertificate()
          Get testkey certificate (pseudonym) of the communication partner.
 org.ssonet.net.SSONETProtocolStream getSSONETProtocolStream()
          Get the SSONETProtocolStream
 void negotiationRequestReceived(int type)
          Calls negotiationRequestReceived() method of all registered ConnectionListeners.
 void removeAnonymityListener(org.ssonet.net.AnonymityListener al)
          Removes a AnonymityListener from this object.
 void removeCertificateListener(org.ssonet.net.CertificateListener cl)
          Removes a addCertificateListener from this object.
 void removeConnectionListener(org.ssonet.net.ConnectionListener cl)
          Removes a ConnectionListener from this object.
 void removeSSONETContextListener(org.ssonet.net.SSONETContextListener cl)
          Removes a SSONETContextListener from this object.
 void replaceContext(org.ssonet.net.SSONETContext c)
          Calls replaceContext() method of all registered SSONETContextListeners.
 boolean resolveConflict(int goal, org.ssonet.net.ActionConfiguration myConf)
          Calls resolveConflict() method of all registered ConnectionListeners.
 void setAccountabilityAcceptMechanism(org.ssonet.net.Mechanism cm)
           
 void setAccountabilitySignMechanism(org.ssonet.net.Mechanism cm)
           
 void setBaseConfiguration(org.ssonet.net.BaseConfiguration bc)
          Set the whole BaseConfiguration at once
 void setConfidentialityMechanism(org.ssonet.net.Mechanism cm)
           
 void setIntegrityMechanism(org.ssonet.net.Mechanism cm)
           
 void setIOFilterStream(org.ssonet.io.IOFilterStream ioFilterStream)
          Set the FilterIOStream.
 void setOwnAccountabilityAcceptMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilityAcceptMechanismConfiguration)
          Set the list of configurations for preferred mechanisms for security goal accountability for checking signatures
 void setOwnAccountabilityAccpetPreferenceList(org.ssonet.mechanisms.PreferenceList ownAccountabilityAcceptPreferenceList)
          Set the mechanism preference list for security goal accountability for checking signatures
 void setOwnAccountabilitySignMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilitySignMechanismConfiguration)
          Set the list of configurations for preferred mechanisms for security goal accountability for signing
 void setOwnAccountabilitySignPreferenceList(org.ssonet.mechanisms.PreferenceList ownAccountabilitySignPreferenceList)
          Get the mechanism preference list for security goal accountability for signing
 void setOwnActionConfiguration(org.ssonet.net.ActionConfiguration ownActionConfiguration)
          Set the security goal configuration for the connection.
 void setOwnAnonServiceConfiguration(java.lang.Boolean ownAnonServiceConfiguration)
          Set security goal configuration for the anonymity service.
 void setOwnAnonymityMechanismConfiguration(java.util.Hashtable ownAnonymityMechanismConfiguration)
          Set the mechanism preference list for security goal anonmity
 void setOwnCipherCertificate(java.security.cert.X509Certificate ownCipherCertificate)
          Set Certificate of the public cipher key.
 void setOwnCiphKey(java.security.PrivateKey ownCiphKey)
          Set Secret cipher key (used for key exchange).
 void setOwnConfidentialityMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownConfidentialityMechanismConfiguration)
          Set the list of configurations for preferred mechanisms for security goal confidentiality
 void setOwnConfidentialityPreferenceList(org.ssonet.mechanisms.PreferenceList ownConfidentialityPreferenceList)
          Set the mechanism preference list for security goal confidentiality
 void setOwnIntegrityMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownIntegrityMechanismConfiguration)
          Set the list of configurations for preferred mechanisms for security goal integrity
 void setOwnIntegrityPreferenceList(org.ssonet.mechanisms.PreferenceList ownIntegrityPreferenceList)
          Set the mechanism preference list for security goal integrity
 void setOwnKeyExchangeAESKey(java.security.Key key)
          Set AES key (used for key exchange).
 void setOwnSessionSigKey(java.security.PrivateKey ownSessionSigKey)
          Set Session sign key.
 void setOwnSessionTestCertificate(java.security.cert.X509Certificate ownSessionTestCertificate)
          Set Certificate of the public session test key.
 void setOwnSigKey(java.security.PrivateKey ownSigKey)
          Set sign key
 void setOwnTestCertificate(java.security.cert.X509Certificate ownTestCertificate)
          Set Certificate of the public test key.
 void setPartnerCipherCertificate(java.security.cert.X509Certificate partnerCipherCertificate)
          Set cipherkey certificate of the communication partner.
 void setPartnerTestCertificate(java.security.cert.X509Certificate partnerTestCertificate)
          Set testkey certificate (pseudonym) of the communication partner.
 void setSSONETProtocolStream(org.ssonet.net.SSONETProtocolStream ssonetProtocolStream)
          Set the SSONETProtocolStream
 void testInitContext(java.lang.String userName, java.lang.String actionConfigName)
          For debugging purposes only: Initilize this SSONETContext with SSONET configurations, keys and certificates from a user directory, usualy created by the BaseConfiguration tool of SSONET.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

public static boolean debug

certificateListeners

protected transient java.util.List certificateListeners
List of registered certificateListeners


certificateListenersUseCounter

protected int certificateListenersUseCounter

contextListeners

protected transient java.util.List contextListeners
List of registered contextListeners


contextListenersUseCounter

protected int contextListenersUseCounter

anonymityListeners

protected transient java.util.List anonymityListeners
List of registered anonymityListeners


anonymityListenersUseCounter

protected int anonymityListenersUseCounter

connectionListeners

protected transient java.util.List connectionListeners
List of registered connectionListeners


connectionListenersUseCounter

protected int connectionListenersUseCounter

ownSigKey

protected java.security.PrivateKey ownSigKey
sign key


ownTestCertificate

protected java.security.cert.X509Certificate ownTestCertificate
Certificate of the public test key.


ownCiphKey

protected java.security.PrivateKey ownCiphKey
Secret cipher key (used for key exchange).


ownCipherCertificate

protected java.security.cert.X509Certificate ownCipherCertificate
Certificate of the public cipher key.


ownKeyExchangeAESKey

protected java.security.Key ownKeyExchangeAESKey
Secret AES key (used for key exchange).


ownSessionSigKey

protected java.security.PrivateKey ownSessionSigKey
Session sign key.


ownSessionTestCertificate

protected java.security.cert.X509Certificate ownSessionTestCertificate
Certificate of the public session test key.


ownActionConfiguration

protected org.ssonet.net.ActionConfiguration ownActionConfiguration
The security goal configuration for the connection.


ownAnonServiceConfiguration

protected java.lang.Boolean ownAnonServiceConfiguration
Security goal configuration for the anonymity service. True, if the anonymity service shall be used, false otherwise


ownConfidentialityPreferenceList

protected org.ssonet.mechanisms.PreferenceList ownConfidentialityPreferenceList
The mechanism preference list for security goal confidentiality


ownIntegrityPreferenceList

protected org.ssonet.mechanisms.PreferenceList ownIntegrityPreferenceList
The mechanism preference list for security goal integrity


ownAccountabilitySignPreferenceList

protected org.ssonet.mechanisms.PreferenceList ownAccountabilitySignPreferenceList
The mechanism preference list for security goal accountability for signing


ownAccountabilityAcceptPreferenceList

protected org.ssonet.mechanisms.PreferenceList ownAccountabilityAcceptPreferenceList
The mechanism preference list for security goal accountability for checking signatures


ownConfidentialityMechanismConfiguration

protected org.ssonet.mechanisms.MechanismConfiguration[] ownConfidentialityMechanismConfiguration
The list of configurations for preferred mechanisms for security goal confidentiality


ownIntegrityMechanismConfiguration

protected org.ssonet.mechanisms.MechanismConfiguration[] ownIntegrityMechanismConfiguration
The list of configurations for preferred mechanisms for security goal integrity


ownAccountabilitySignMechanismConfiguration

protected org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilitySignMechanismConfiguration
The list of configurations for preferred mechanisms for security goal accountability for signing


ownAccountabilityAcceptMechanismConfiguration

protected org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilityAcceptMechanismConfiguration
The list of configurations for preferred mechanisms for security goal accountability for checking signatures


ownAnonymityMechanismConfiguration

protected java.util.Hashtable ownAnonymityMechanismConfiguration
The mechanism configuration for security goal anonymity, as set in the baseConfiguration utility


partnerTestCertificate

protected java.security.cert.X509Certificate partnerTestCertificate
Testkey certificate (pseudonym) of the communication partner.


partnerCipherCertificate

protected java.security.cert.X509Certificate partnerCipherCertificate
Cipherkey certificate of the communication partner.


confidentialityMechanism

protected org.ssonet.net.Mechanism confidentialityMechanism

integrityMechanism

protected org.ssonet.net.Mechanism integrityMechanism

accountabilitySignMechanism

protected org.ssonet.net.Mechanism accountabilitySignMechanism

accountabilityAcceptMechanism

protected org.ssonet.net.Mechanism accountabilityAcceptMechanism

filterStream

protected org.ssonet.io.IOFilterStream filterStream
A Filter IO Stream to use above the ProtocolStream.


ssonetProtocolStream

protected org.ssonet.net.SSONETProtocolStream ssonetProtocolStream
The protocol engine object of ssonet for this connection

Constructor Detail

SSONETContext

public SSONETContext()
Creates a SSONETContext and inserts System.properties() into it.


SSONETContext

public SSONETContext(java.util.Properties p)
Creates a SSONETContext and inserts user defined properties into it.

Method Detail

addSSONETContextListener

public void addSSONETContextListener(org.ssonet.net.SSONETContextListener cl)
Registers a SSONETContextListener with this object.

Parameters:
cl - the SSONETContextListener.

removeSSONETContextListener

public void removeSSONETContextListener(org.ssonet.net.SSONETContextListener cl)
Removes a SSONETContextListener from this object.

Parameters:
cl - the SSONETContextListener.

addCertificateListener

public void addCertificateListener(org.ssonet.net.CertificateListener cl)
Registers a addCertificateListener with this object.

Parameters:
cl - the addCertificateListener.

removeCertificateListener

public void removeCertificateListener(org.ssonet.net.CertificateListener cl)
Removes a addCertificateListener from this object.

Parameters:
cl - the addCertificateListener.

addAnonymityListener

public void addAnonymityListener(org.ssonet.net.AnonymityListener al)
Registers a AnonymityListener with this object.

Parameters:
al - the AnonymityListener.

removeAnonymityListener

public void removeAnonymityListener(org.ssonet.net.AnonymityListener al)
Removes a AnonymityListener from this object.

Parameters:
al - the AnonymityListener.

addConnectionListener

public void addConnectionListener(org.ssonet.net.ConnectionListener cl)
Registers a ConnectionListener with this object.

Parameters:
cl - the ConnectionListener.

removeConnectionListener

public void removeConnectionListener(org.ssonet.net.ConnectionListener cl)
Removes a ConnectionListener from this object.

Parameters:
cl - the ConnectionListener.

replaceContext

public void replaceContext(org.ssonet.net.SSONETContext c)
Calls replaceContext() method of all registered SSONETContextListeners.


contextChanged

public void contextChanged()
Calls contextChanged() method of all registered SSONETContextListeners.


checkCertificate

public boolean checkCertificate(java.security.cert.X509Certificate cert)
Calls checkCertificate() method of all registered CertificateListeners and compute a return value from the returnvalues of all registered CertificateListeners.


resolveConflict

public boolean resolveConflict(int goal,
                               org.ssonet.net.ActionConfiguration myConf)
Calls resolveConflict() method of all registered ConnectionListeners.


negotiationRequestReceived

public void negotiationRequestReceived(int type)
Calls negotiationRequestReceived() method of all registered ConnectionListeners.


anonymityLevelChanged

public void anonymityLevelChanged(int level)
Calls anonymityLevelChanged() method of all registered anonymityListeners.


anonymityStateChanged

public void anonymityStateChanged(int state)
Calls anonymityStateChanged() method of all registered anonymityListeners.


connectionStateChanged

public void connectionStateChanged(int state)
Calls connectionStateChanged() method of all registered connectionListeners.


setOwnSigKey

public void setOwnSigKey(java.security.PrivateKey ownSigKey)
Set sign key


getOwnSigKey

public java.security.PrivateKey getOwnSigKey()
Get sign key


setOwnTestCertificate

public void setOwnTestCertificate(java.security.cert.X509Certificate ownTestCertificate)
Set Certificate of the public test key.


getOwnTestCertificate

public java.security.cert.X509Certificate getOwnTestCertificate()
Get Certificate of the public test key.


setOwnCiphKey

public void setOwnCiphKey(java.security.PrivateKey ownCiphKey)
Set Secret cipher key (used for key exchange).


getOwnCiphKey

public java.security.PrivateKey getOwnCiphKey()
Get Secret cipher key (used for key exchange).


setOwnCipherCertificate

public void setOwnCipherCertificate(java.security.cert.X509Certificate ownCipherCertificate)
Set Certificate of the public cipher key.


getOwnCipherCertificate

public java.security.cert.X509Certificate getOwnCipherCertificate()
Get Certificate of the public cipher key.


setOwnKeyExchangeAESKey

public void setOwnKeyExchangeAESKey(java.security.Key key)
Set AES key (used for key exchange).


getOwnKeyExchangeAESKey

public java.security.Key getOwnKeyExchangeAESKey()
Get AES key (used for key exchange).


setOwnSessionSigKey

public void setOwnSessionSigKey(java.security.PrivateKey ownSessionSigKey)
Set Session sign key. By default the key is generated by SSONET after an accountability mechanism was selected. Using a KeyGenerationListener, an application can provide its own key, when the listener method needKey is called.


getOwnSessionSigKey

public java.security.PrivateKey getOwnSessionSigKey()
Get session sign key


setOwnSessionTestCertificate

public void setOwnSessionTestCertificate(java.security.cert.X509Certificate ownSessionTestCertificate)
Set Certificate of the public session test key. By default the certificate is generated by SSONET after an accountability mechanism was selected. Using a KeyGenerationListener, an application can provide its own certificate, when the listener method needKey is called.


getOwnSessionTestCertificate

public java.security.cert.X509Certificate getOwnSessionTestCertificate()
Get Certificate of the public session test key.


setOwnActionConfiguration

public void setOwnActionConfiguration(org.ssonet.net.ActionConfiguration ownActionConfiguration)
Set the security goal configuration for the connection.


getOwnActionConfiguration

public org.ssonet.net.ActionConfiguration getOwnActionConfiguration()
Get the security goal configuration for the connection.


setOwnAnonServiceConfiguration

public void setOwnAnonServiceConfiguration(java.lang.Boolean ownAnonServiceConfiguration)
Set security goal configuration for the anonymity service.

Parameters:
ownAnonServiceConfiguration - True, if the anonymity service shall be used, false otherwise

getOwnAnonServiceConfiguration

public java.lang.Boolean getOwnAnonServiceConfiguration()
Get security goal configuration for the anonymity service.

Returns:
ownAnonServiceConfiguration True, if the anonymity service shall be used, false otherwise

setBaseConfiguration

public void setBaseConfiguration(org.ssonet.net.BaseConfiguration bc)
                          throws java.lang.Exception
Set the whole BaseConfiguration at once

Parameters:
bc - the BaseConfiguration
Throws:
java.lang.Exception - if there is wrong data in the base configuration

getOwnConfidentialityPreferenceList

public org.ssonet.mechanisms.PreferenceList getOwnConfidentialityPreferenceList()
Get the mechanism preference list for security goal confidentiality


setOwnConfidentialityPreferenceList

public void setOwnConfidentialityPreferenceList(org.ssonet.mechanisms.PreferenceList ownConfidentialityPreferenceList)
Set the mechanism preference list for security goal confidentiality


getOwnIntegrityPreferenceList

public org.ssonet.mechanisms.PreferenceList getOwnIntegrityPreferenceList()
Get the mechanism preference list for security goal integrity


setOwnIntegrityPreferenceList

public void setOwnIntegrityPreferenceList(org.ssonet.mechanisms.PreferenceList ownIntegrityPreferenceList)
Set the mechanism preference list for security goal integrity


getOwnAccountabilitySignPreferenceList

public org.ssonet.mechanisms.PreferenceList getOwnAccountabilitySignPreferenceList()
Set the mechanism preference list for security goal accountability for signing


setOwnAccountabilitySignPreferenceList

public void setOwnAccountabilitySignPreferenceList(org.ssonet.mechanisms.PreferenceList ownAccountabilitySignPreferenceList)
Get the mechanism preference list for security goal accountability for signing


getOwnAccountabilityAcceptPreferenceList

public org.ssonet.mechanisms.PreferenceList getOwnAccountabilityAcceptPreferenceList()
Get the mechanism preference list for security goal accountability for checking signatures


setOwnAccountabilityAccpetPreferenceList

public void setOwnAccountabilityAccpetPreferenceList(org.ssonet.mechanisms.PreferenceList ownAccountabilityAcceptPreferenceList)
Set the mechanism preference list for security goal accountability for checking signatures


getOwnConfidentialityMechanismConfiguration

public org.ssonet.mechanisms.MechanismConfiguration[] getOwnConfidentialityMechanismConfiguration()
Get the list of configurations for preferred mechanisms for security goal confidentiality


setOwnConfidentialityMechanismConfiguration

public void setOwnConfidentialityMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownConfidentialityMechanismConfiguration)
Set the list of configurations for preferred mechanisms for security goal confidentiality


getOwnIntegrityMechanismConfiguration

public org.ssonet.mechanisms.MechanismConfiguration[] getOwnIntegrityMechanismConfiguration()
Get the list of configurations for preferred mechanisms for security goal integrity


setOwnIntegrityMechanismConfiguration

public void setOwnIntegrityMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownIntegrityMechanismConfiguration)
Set the list of configurations for preferred mechanisms for security goal integrity


getOwnAccountabilitySignMechanismConfiguration

public org.ssonet.mechanisms.MechanismConfiguration[] getOwnAccountabilitySignMechanismConfiguration()
Get the list of configurations for preferred mechanisms for security goal accountability for signing


setOwnAccountabilitySignMechanismConfiguration

public void setOwnAccountabilitySignMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilitySignMechanismConfiguration)
Set the list of configurations for preferred mechanisms for security goal accountability for signing


getOwnAccountabilityAcceptMechanismConfiguration

public org.ssonet.mechanisms.MechanismConfiguration[] getOwnAccountabilityAcceptMechanismConfiguration()
Get the list of configurations for preferred mechanisms for security goal accountability for checking signatures


setOwnAccountabilityAcceptMechanismConfiguration

public void setOwnAccountabilityAcceptMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilityAcceptMechanismConfiguration)
Set the list of configurations for preferred mechanisms for security goal accountability for checking signatures


getOwnAnonymityMechanismConfiguration

public java.util.Hashtable getOwnAnonymityMechanismConfiguration()
Get the mechanism preference list for security goal anonymity


setOwnAnonymityMechanismConfiguration

public void setOwnAnonymityMechanismConfiguration(java.util.Hashtable ownAnonymityMechanismConfiguration)
Set the mechanism preference list for security goal anonmity


setPartnerTestCertificate

public void setPartnerTestCertificate(java.security.cert.X509Certificate partnerTestCertificate)
Set testkey certificate (pseudonym) of the communication partner.


getPartnerTestCertificate

public java.security.cert.X509Certificate getPartnerTestCertificate()
Get testkey certificate (pseudonym) of the communication partner.


setPartnerCipherCertificate

public void setPartnerCipherCertificate(java.security.cert.X509Certificate partnerCipherCertificate)
Set cipherkey certificate of the communication partner.


getPartnerCipherCertificate

public java.security.cert.X509Certificate getPartnerCipherCertificate()
Get cipherkey certificate of the communication partner.


setConfidentialityMechanism

public void setConfidentialityMechanism(org.ssonet.net.Mechanism cm)

getConfidentialityMechanism

public org.ssonet.net.Mechanism getConfidentialityMechanism()

setIntegrityMechanism

public void setIntegrityMechanism(org.ssonet.net.Mechanism cm)

getIntegrityMechanism

public org.ssonet.net.Mechanism getIntegrityMechanism()

setAccountabilitySignMechanism

public void setAccountabilitySignMechanism(org.ssonet.net.Mechanism cm)

getAccountabilitySignMechanism

public org.ssonet.net.Mechanism getAccountabilitySignMechanism()

setAccountabilityAcceptMechanism

public void setAccountabilityAcceptMechanism(org.ssonet.net.Mechanism cm)

getAccountabilityAcceptMechanism

public org.ssonet.net.Mechanism getAccountabilityAcceptMechanism()

setIOFilterStream

public void setIOFilterStream(org.ssonet.io.IOFilterStream ioFilterStream)
Set the FilterIOStream.


getIOFilterStream

public org.ssonet.io.IOFilterStream getIOFilterStream()
Get the FilterIOStream.


setSSONETProtocolStream

public void setSSONETProtocolStream(org.ssonet.net.SSONETProtocolStream ssonetProtocolStream)
Set the SSONETProtocolStream


getConnectionState

public int getConnectionState()

getSSONETProtocolStream

public org.ssonet.net.SSONETProtocolStream getSSONETProtocolStream()
Get the SSONETProtocolStream


doSecurityGoalNegotiation

public void doSecurityGoalNegotiation()
                               throws java.io.IOException
Invoke new security goal (and mechanisms) negotiation

java.io.IOException

doMechanismsNegotiation

public void doMechanismsNegotiation()
                             throws java.io.IOException
Invoke new mechanisms negotiation

java.io.IOException

testInitContext

public void testInitContext(java.lang.String userName,
                            java.lang.String actionConfigName)
                     throws java.lang.Exception
For debugging purposes only: Initilize this SSONETContext with SSONET configurations, keys and certificates from a user directory, usualy created by the BaseConfiguration tool of SSONET.

Parameters:
userName - the name of the user directory of SSONET BaseConfigration, where the data should be read from (it must not end with a directory delimiter)
actionConfigName - the filename of the action configuration used for this connection
java.lang.Exception
See Also:
BaseConfiguration


Copyright © 2003 DRIM Team. All Rights Reserved.