|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ssonet.net.SSONETNegotiate
This class implements the negotiation functions for security goals and mechanisms.
Field Summary | |
static boolean |
debug
|
static boolean |
debugProfiling
|
Method Summary | |
static org.ssonet.mechanisms.PreferenceList |
computePreferred(org.ssonet.mechanisms.PreferenceList preferences1,
org.ssonet.mechanisms.PreferenceList preferences2)
given two preference lists, this method builds a list of all items, which are on both lists, from the most preferred to the least preferred. |
static boolean |
negotiatePhaseOne(org.ssonet.net.ActionConfiguration ownConfig,
org.ssonet.net.ActionConfiguration partnerConfig,
org.ssonet.net.SSONETContext context)
First security goal negotiation. |
static org.ssonet.io.IOStream |
negotiatePhaseThree(org.ssonet.net.PhaseThreeConfiguration ownConfiguration,
org.ssonet.net.PhaseThreeConfiguration partnerConfiguration,
org.ssonet.io.IOStream ioStream,
org.ssonet.io.IOStream basicIOStream,
org.ssonet.net.SSONETContext context,
boolean isServer)
Negotiates the mechanisms for the security goals to be enforced. |
static org.ssonet.net.PhaseTwoResult |
negotiatePhaseTwo(org.ssonet.net.ActionConfiguration ownConfig,
org.ssonet.net.ActionConfiguration partnerConfig)
Second security goal negotiation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean debug
public static boolean debugProfiling
Method Detail |
public static boolean negotiatePhaseOne(org.ssonet.net.ActionConfiguration ownConfig, org.ssonet.net.ActionConfiguration partnerConfig, org.ssonet.net.SSONETContext context)
ownConfig
- the users security goal configurationpartnerConfig
- the partners security goal configuration
public static org.ssonet.net.PhaseTwoResult negotiatePhaseTwo(org.ssonet.net.ActionConfiguration ownConfig, org.ssonet.net.ActionConfiguration partnerConfig)
ownConfig
- the users security goal configuration for second negotiationpartnerConfig
- the partners security goal configuration for second negotiation
public static org.ssonet.io.IOStream negotiatePhaseThree(org.ssonet.net.PhaseThreeConfiguration ownConfiguration, org.ssonet.net.PhaseThreeConfiguration partnerConfiguration, org.ssonet.io.IOStream ioStream, org.ssonet.io.IOStream basicIOStream, org.ssonet.net.SSONETContext context, boolean isServer) throws SSONETCertificateNotValidException, NoCommonMechanismException, java.io.IOException
ownConfiguration
- the users configuration for mechanism negotiationpartnerConfiguration
- the partners configuration for mechanism negotiationioStream
- the stream used for negotiation and key exchangebasicIOStream
- the data transmission stream of the connection, where the
mechanisms shall be applied to.context
- the SSONETContext holding all configuration data for the connectionisServer
- true on servers side, false on clients side
IOStream
, with the negotiated security mechanisms applied to it.
SSONETCertificateNotValidException
- if a certificate used is key exchange procedures
is not valid
NoCommonMechanismException
- if for a security goal no common Mechanism is found
java.io.IOException
- if something other went wrong, so that the connection must be aborted.public static org.ssonet.mechanisms.PreferenceList computePreferred(org.ssonet.mechanisms.PreferenceList preferences1, org.ssonet.mechanisms.PreferenceList preferences2)
preferences1
- the first preference list,preferences2
- the second preference list.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |