|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--java.util.Properties | +--org.ssonet.net.SSONETContext
Describes the communication circumstances, the connection.
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 |
public static boolean debug
protected transient java.util.List certificateListeners
protected int certificateListenersUseCounter
protected transient java.util.List contextListeners
protected int contextListenersUseCounter
protected transient java.util.List anonymityListeners
protected int anonymityListenersUseCounter
protected transient java.util.List connectionListeners
protected int connectionListenersUseCounter
protected java.security.PrivateKey ownSigKey
protected java.security.cert.X509Certificate ownTestCertificate
protected java.security.PrivateKey ownCiphKey
protected java.security.cert.X509Certificate ownCipherCertificate
protected java.security.Key ownKeyExchangeAESKey
protected java.security.PrivateKey ownSessionSigKey
protected java.security.cert.X509Certificate ownSessionTestCertificate
protected org.ssonet.net.ActionConfiguration ownActionConfiguration
protected java.lang.Boolean ownAnonServiceConfiguration
protected org.ssonet.mechanisms.PreferenceList ownConfidentialityPreferenceList
protected org.ssonet.mechanisms.PreferenceList ownIntegrityPreferenceList
protected org.ssonet.mechanisms.PreferenceList ownAccountabilitySignPreferenceList
protected org.ssonet.mechanisms.PreferenceList ownAccountabilityAcceptPreferenceList
protected org.ssonet.mechanisms.MechanismConfiguration[] ownConfidentialityMechanismConfiguration
protected org.ssonet.mechanisms.MechanismConfiguration[] ownIntegrityMechanismConfiguration
protected org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilitySignMechanismConfiguration
protected org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilityAcceptMechanismConfiguration
protected java.util.Hashtable ownAnonymityMechanismConfiguration
protected java.security.cert.X509Certificate partnerTestCertificate
protected java.security.cert.X509Certificate partnerCipherCertificate
protected org.ssonet.net.Mechanism confidentialityMechanism
protected org.ssonet.net.Mechanism integrityMechanism
protected org.ssonet.net.Mechanism accountabilitySignMechanism
protected org.ssonet.net.Mechanism accountabilityAcceptMechanism
protected org.ssonet.io.IOFilterStream filterStream
protected org.ssonet.net.SSONETProtocolStream ssonetProtocolStream
Constructor Detail |
public SSONETContext()
System.properties()
into it.
public SSONETContext(java.util.Properties p)
Method Detail |
public void addSSONETContextListener(org.ssonet.net.SSONETContextListener cl)
SSONETContextListener
with this object.
cl
- the SSONETContextListener
.public void removeSSONETContextListener(org.ssonet.net.SSONETContextListener cl)
SSONETContextListener
from this object.
cl
- the SSONETContextListener
.public void addCertificateListener(org.ssonet.net.CertificateListener cl)
addCertificateListener
with this object.
cl
- the addCertificateListener
.public void removeCertificateListener(org.ssonet.net.CertificateListener cl)
addCertificateListener
from this object.
cl
- the addCertificateListener
.public void addAnonymityListener(org.ssonet.net.AnonymityListener al)
AnonymityListener
with this object.
al
- the AnonymityListener
.public void removeAnonymityListener(org.ssonet.net.AnonymityListener al)
AnonymityListener
from this object.
al
- the AnonymityListener
.public void addConnectionListener(org.ssonet.net.ConnectionListener cl)
ConnectionListener
with this object.
cl
- the ConnectionListener
.public void removeConnectionListener(org.ssonet.net.ConnectionListener cl)
ConnectionListener
from this object.
cl
- the ConnectionListener
.public void replaceContext(org.ssonet.net.SSONETContext c)
replaceContext()
method of all registered SSONETContextListeners.
public void contextChanged()
contextChanged()
method of all registered SSONETContextListeners.
public boolean checkCertificate(java.security.cert.X509Certificate cert)
checkCertificate()
method of all registered CertificateListeners and compute
a return value from the returnvalues of all registered CertificateListeners.
public boolean resolveConflict(int goal, org.ssonet.net.ActionConfiguration myConf)
resolveConflict()
method of all registered ConnectionListeners.
public void negotiationRequestReceived(int type)
negotiationRequestReceived()
method of all registered ConnectionListeners.
public void anonymityLevelChanged(int level)
anonymityLevelChanged()
method of all registered anonymityListeners.
public void anonymityStateChanged(int state)
anonymityStateChanged()
method of all registered anonymityListeners.
public void connectionStateChanged(int state)
connectionStateChanged()
method of all registered connectionListeners.
public void setOwnSigKey(java.security.PrivateKey ownSigKey)
public java.security.PrivateKey getOwnSigKey()
public void setOwnTestCertificate(java.security.cert.X509Certificate ownTestCertificate)
public java.security.cert.X509Certificate getOwnTestCertificate()
public void setOwnCiphKey(java.security.PrivateKey ownCiphKey)
public java.security.PrivateKey getOwnCiphKey()
public void setOwnCipherCertificate(java.security.cert.X509Certificate ownCipherCertificate)
public java.security.cert.X509Certificate getOwnCipherCertificate()
public void setOwnKeyExchangeAESKey(java.security.Key key)
public java.security.Key getOwnKeyExchangeAESKey()
public void setOwnSessionSigKey(java.security.PrivateKey ownSessionSigKey)
needKey
is called.
public java.security.PrivateKey getOwnSessionSigKey()
public void setOwnSessionTestCertificate(java.security.cert.X509Certificate ownSessionTestCertificate)
needKey
is called.
public java.security.cert.X509Certificate getOwnSessionTestCertificate()
public void setOwnActionConfiguration(org.ssonet.net.ActionConfiguration ownActionConfiguration)
public org.ssonet.net.ActionConfiguration getOwnActionConfiguration()
public void setOwnAnonServiceConfiguration(java.lang.Boolean ownAnonServiceConfiguration)
ownAnonServiceConfiguration
- True, if the
anonymity service shall be used, false otherwisepublic java.lang.Boolean getOwnAnonServiceConfiguration()
public void setBaseConfiguration(org.ssonet.net.BaseConfiguration bc) throws java.lang.Exception
bc
- the BaseConfiguration
java.lang.Exception
- if there is wrong data in the base configurationpublic org.ssonet.mechanisms.PreferenceList getOwnConfidentialityPreferenceList()
public void setOwnConfidentialityPreferenceList(org.ssonet.mechanisms.PreferenceList ownConfidentialityPreferenceList)
public org.ssonet.mechanisms.PreferenceList getOwnIntegrityPreferenceList()
public void setOwnIntegrityPreferenceList(org.ssonet.mechanisms.PreferenceList ownIntegrityPreferenceList)
public org.ssonet.mechanisms.PreferenceList getOwnAccountabilitySignPreferenceList()
public void setOwnAccountabilitySignPreferenceList(org.ssonet.mechanisms.PreferenceList ownAccountabilitySignPreferenceList)
public org.ssonet.mechanisms.PreferenceList getOwnAccountabilityAcceptPreferenceList()
public void setOwnAccountabilityAccpetPreferenceList(org.ssonet.mechanisms.PreferenceList ownAccountabilityAcceptPreferenceList)
public org.ssonet.mechanisms.MechanismConfiguration[] getOwnConfidentialityMechanismConfiguration()
public void setOwnConfidentialityMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownConfidentialityMechanismConfiguration)
public org.ssonet.mechanisms.MechanismConfiguration[] getOwnIntegrityMechanismConfiguration()
public void setOwnIntegrityMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownIntegrityMechanismConfiguration)
public org.ssonet.mechanisms.MechanismConfiguration[] getOwnAccountabilitySignMechanismConfiguration()
public void setOwnAccountabilitySignMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilitySignMechanismConfiguration)
public org.ssonet.mechanisms.MechanismConfiguration[] getOwnAccountabilityAcceptMechanismConfiguration()
public void setOwnAccountabilityAcceptMechanismConfiguration(org.ssonet.mechanisms.MechanismConfiguration[] ownAccountabilityAcceptMechanismConfiguration)
public java.util.Hashtable getOwnAnonymityMechanismConfiguration()
public void setOwnAnonymityMechanismConfiguration(java.util.Hashtable ownAnonymityMechanismConfiguration)
public void setPartnerTestCertificate(java.security.cert.X509Certificate partnerTestCertificate)
public java.security.cert.X509Certificate getPartnerTestCertificate()
public void setPartnerCipherCertificate(java.security.cert.X509Certificate partnerCipherCertificate)
public java.security.cert.X509Certificate getPartnerCipherCertificate()
public void setConfidentialityMechanism(org.ssonet.net.Mechanism cm)
public org.ssonet.net.Mechanism getConfidentialityMechanism()
public void setIntegrityMechanism(org.ssonet.net.Mechanism cm)
public org.ssonet.net.Mechanism getIntegrityMechanism()
public void setAccountabilitySignMechanism(org.ssonet.net.Mechanism cm)
public org.ssonet.net.Mechanism getAccountabilitySignMechanism()
public void setAccountabilityAcceptMechanism(org.ssonet.net.Mechanism cm)
public org.ssonet.net.Mechanism getAccountabilityAcceptMechanism()
public void setIOFilterStream(org.ssonet.io.IOFilterStream ioFilterStream)
public org.ssonet.io.IOFilterStream getIOFilterStream()
public void setSSONETProtocolStream(org.ssonet.net.SSONETProtocolStream ssonetProtocolStream)
public int getConnectionState()
public org.ssonet.net.SSONETProtocolStream getSSONETProtocolStream()
public void doSecurityGoalNegotiation() throws java.io.IOException
java.io.IOException
public void doMechanismsNegotiation() throws java.io.IOException
java.io.IOException
public void testInitContext(java.lang.String userName, java.lang.String actionConfigName) throws java.lang.Exception
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
BaseConfiguration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |