|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ssonet.net.PhaseThreeConfiguration
Configuration class for negotiation phase three, the negotiation of the security mechanisms and their parameters.
Constructor Summary | |
PhaseThreeConfiguration(org.w3c.dom.Element root)
Creates a PhaseThreeConfiguration from an XML Element. |
|
PhaseThreeConfiguration(java.io.InputStream is)
Decodes a PhaseThreeConfiguration from an InputStream . |
|
PhaseThreeConfiguration(java.io.InputStream is,
boolean isZipped)
Decodes a PhaseThreeConfiguration from an InputStream . |
|
PhaseThreeConfiguration(org.ssonet.io.IOStream ioStream)
Decodes a PhaseThreeConfiguration from an IOStream . |
|
PhaseThreeConfiguration(org.ssonet.io.IOStream ioStream,
boolean isZipped)
Decodes a PhaseThreeConfiguration from an IOStream . |
|
PhaseThreeConfiguration(org.ssonet.net.PhaseTwoResult phaseTwoResult)
Creates a new Object with the given PhaseTwoResult |
Method Summary | |
org.ssonet.mechanisms.MechanismConfiguration |
getConfiguration(int securityGoal,
java.lang.String mechanismName)
Gets a mechanism configuration of a mechanism used to enforce the given security goal. |
org.ssonet.net.PhaseTwoResult |
getPhaseTwoResult()
|
org.ssonet.mechanisms.PreferenceList |
getPreferenceList(int securityGoal)
Gets a mechanism preference list for a given security goal. |
void |
setAccountabilityAccept(org.ssonet.mechanisms.PreferenceList preferenceList,
org.ssonet.mechanisms.MechanismConfiguration[] configuration)
Sets the preference list of the accountability mechanisms for checking signatures and the list of mechanism configurations of the preferred mechanisms |
void |
setAccountabilitySign(org.ssonet.mechanisms.PreferenceList preferenceList,
org.ssonet.mechanisms.MechanismConfiguration[] configuration)
Sets the preference list of the accountability mechanisms for creating signatures and the list of mechanism configurations of the preferred mechanisms |
void |
setConfidentiality(org.ssonet.mechanisms.PreferenceList preferenceList,
org.ssonet.mechanisms.MechanismConfiguration[] configuration)
Sets the preference list of the confidentiality mechanisms and the list of mechanism configurations of the preferred mechanisms |
void |
setIntegrity(org.ssonet.mechanisms.PreferenceList preferenceList,
org.ssonet.mechanisms.MechanismConfiguration[] configuration)
Sets the preference list of the integrity mechanisms and the list of mechanism configurations of the preferred mechanisms |
void |
toStreamXML(org.ssonet.io.IOStream ioStream)
Writes the PhaseThreeConfiguration to an IOStream in XML encoded from. |
void |
toStreamXML(org.ssonet.io.IOStream ioStream,
boolean isZipped)
Writes the PhaseThreeConfiguration to an IOStream in XML encoded from. |
void |
toStreamXML(java.io.OutputStream os)
Writes the PhaseThreeConfiguration to a stream in XML encoded from. |
void |
toStreamXML(java.io.OutputStream os,
boolean isZipped)
Writes the PhaseThreeConfiguration to a stream in XML encoded from. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PhaseThreeConfiguration(org.ssonet.net.PhaseTwoResult phaseTwoResult)
phaseTwoResult
- the security goal settings in result to negotiation phase twopublic PhaseThreeConfiguration(java.io.InputStream is) throws java.io.IOException
PhaseThreeConfiguration
from an InputStream
.
The InputStream
is not closed after reading.
is
- the InputStreampublic PhaseThreeConfiguration(java.io.InputStream is, boolean isZipped) throws java.io.IOException
PhaseThreeConfiguration
from an InputStream
.
The InputStream
is not closed after reading.
is
- the InputStreamisZipped
- true, if the document to be read is zipped, false otherwisepublic PhaseThreeConfiguration(org.ssonet.io.IOStream ioStream) throws java.io.IOException
PhaseThreeConfiguration
from an IOStream
.
The IOStream
is not closed after reading.
ioStream
- the IOStreampublic PhaseThreeConfiguration(org.ssonet.io.IOStream ioStream, boolean isZipped) throws java.io.IOException
PhaseThreeConfiguration
from an IOStream
.
The IOStream
is not closed after reading.
ioStream
- the IOStreamisZipped
- true, if the document to be read is zipped, false otherwisepublic PhaseThreeConfiguration(org.w3c.dom.Element root) throws java.io.IOException
root
- the root Element of the XML structure
java.io.IOException
- if an error occures during decoding the XML structureMethod Detail |
public org.ssonet.net.PhaseTwoResult getPhaseTwoResult()
public void setConfidentiality(org.ssonet.mechanisms.PreferenceList preferenceList, org.ssonet.mechanisms.MechanismConfiguration[] configuration)
preferenceList
- the preference listconfiguration
- the configurations listpublic void setAccountabilitySign(org.ssonet.mechanisms.PreferenceList preferenceList, org.ssonet.mechanisms.MechanismConfiguration[] configuration)
preferenceList
- the preference listconfiguration
- the configurations listpublic void setAccountabilityAccept(org.ssonet.mechanisms.PreferenceList preferenceList, org.ssonet.mechanisms.MechanismConfiguration[] configuration)
preferenceList
- the preference listconfiguration
- the configurations listpublic void setIntegrity(org.ssonet.mechanisms.PreferenceList preferenceList, org.ssonet.mechanisms.MechanismConfiguration[] configuration)
preferenceList
- the preference listconfiguration
- the configurations listpublic org.ssonet.mechanisms.MechanismConfiguration getConfiguration(int securityGoal, java.lang.String mechanismName)
securityGoal
- the security goal ID, see SSONETConstants
.mechanismName
- the name of the security mechanism.
MechanismConfiguration
of the requested mechanismpublic org.ssonet.mechanisms.PreferenceList getPreferenceList(int securityGoal)
securityGoal
- the security goal.
public java.lang.String toString()
toString
in class java.lang.Object
public void toStreamXML(java.io.OutputStream os) throws java.io.IOException
os
- the outputstream.
java.io.IOException
- if an error occures during writing the encoded PhaseThreeConfiguration to streampublic void toStreamXML(java.io.OutputStream os, boolean isZipped) throws java.io.IOException
os
- the outputstream.isZipped
- true, if the document to write shall be zipped, false otherwise
java.io.IOException
- if an error occures during writing the encoded PhaseThreeConfiguration to streampublic void toStreamXML(org.ssonet.io.IOStream ioStream) throws java.io.IOException
ioStream
- the IOStream.
java.io.IOException
- if an error occures during writing the encoded PhaseThreeConfiguration to streampublic void toStreamXML(org.ssonet.io.IOStream ioStream, boolean isZipped) throws java.io.IOException
ioStream
- the IOStream.isZipped
- true, if the document to write shall be zipped, false otherwise
java.io.IOException
- if an error occures during writing the encoded PhaseThreeConfiguration to stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |