org.ssonet.net
Class PhaseThreeConfiguration

java.lang.Object
  |
  +--org.ssonet.net.PhaseThreeConfiguration
All Implemented Interfaces:
java.io.Serializable

public class PhaseThreeConfiguration
extends java.lang.Object
implements java.io.Serializable

Configuration class for negotiation phase three, the negotiation of the security mechanisms and their parameters.

See Also:
Serialized Form

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

PhaseThreeConfiguration

public PhaseThreeConfiguration(org.ssonet.net.PhaseTwoResult phaseTwoResult)
Creates a new Object with the given PhaseTwoResult

Parameters:
phaseTwoResult - the security goal settings in result to negotiation phase two

PhaseThreeConfiguration

public PhaseThreeConfiguration(java.io.InputStream is)
                        throws java.io.IOException
Decodes a PhaseThreeConfiguration from an InputStream. The InputStream is not closed after reading.

Parameters:
is - the InputStream

PhaseThreeConfiguration

public PhaseThreeConfiguration(java.io.InputStream is,
                               boolean isZipped)
                        throws java.io.IOException
Decodes a PhaseThreeConfiguration from an InputStream. The InputStream is not closed after reading.

Parameters:
is - the InputStream
isZipped - true, if the document to be read is zipped, false otherwise

PhaseThreeConfiguration

public PhaseThreeConfiguration(org.ssonet.io.IOStream ioStream)
                        throws java.io.IOException
Decodes a PhaseThreeConfiguration from an IOStream. The IOStream is not closed after reading.

Parameters:
ioStream - the IOStream

PhaseThreeConfiguration

public PhaseThreeConfiguration(org.ssonet.io.IOStream ioStream,
                               boolean isZipped)
                        throws java.io.IOException
Decodes a PhaseThreeConfiguration from an IOStream. The IOStream is not closed after reading.

Parameters:
ioStream - the IOStream
isZipped - true, if the document to be read is zipped, false otherwise

PhaseThreeConfiguration

public PhaseThreeConfiguration(org.w3c.dom.Element root)
                        throws java.io.IOException
Creates a PhaseThreeConfiguration from an XML Element.

Parameters:
root - the root Element of the XML structure
Throws:
java.io.IOException - if an error occures during decoding the XML structure
Method Detail

getPhaseTwoResult

public org.ssonet.net.PhaseTwoResult getPhaseTwoResult()
Returns:
the result of the negotiation of the security goals

setConfidentiality

public 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

Parameters:
preferenceList - the preference list
configuration - the configurations list

setAccountabilitySign

public 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

Parameters:
preferenceList - the preference list
configuration - the configurations list

setAccountabilityAccept

public 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

Parameters:
preferenceList - the preference list
configuration - the configurations list

setIntegrity

public 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

Parameters:
preferenceList - the preference list
configuration - the configurations list

getConfiguration

public 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.

Parameters:
securityGoal - the security goal ID, see SSONETConstants.
mechanismName - the name of the security mechanism.
Returns:
the MechanismConfiguration of the requested mechanism

getPreferenceList

public org.ssonet.mechanisms.PreferenceList getPreferenceList(int securityGoal)
Gets a mechanism preference list for a given security goal.

Parameters:
securityGoal - the security goal.
Returns:
the mechanism preference list for the security goal.

toString

public java.lang.String toString()
Returns the string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this object.

toStreamXML

public void toStreamXML(java.io.OutputStream os)
                 throws java.io.IOException
Writes the PhaseThreeConfiguration to a stream in XML encoded from.

Parameters:
os - the outputstream.
Throws:
java.io.IOException - if an error occures during writing the encoded PhaseThreeConfiguration to stream

toStreamXML

public void toStreamXML(java.io.OutputStream os,
                        boolean isZipped)
                 throws java.io.IOException
Writes the PhaseThreeConfiguration to a stream in XML encoded from.

Parameters:
os - the outputstream.
isZipped - true, if the document to write shall be zipped, false otherwise
Throws:
java.io.IOException - if an error occures during writing the encoded PhaseThreeConfiguration to stream

toStreamXML

public void toStreamXML(org.ssonet.io.IOStream ioStream)
                 throws java.io.IOException
Writes the PhaseThreeConfiguration to an IOStream in XML encoded from.

Parameters:
ioStream - the IOStream.
Throws:
java.io.IOException - if an error occures during writing the encoded PhaseThreeConfiguration to stream

toStreamXML

public void toStreamXML(org.ssonet.io.IOStream ioStream,
                        boolean isZipped)
                 throws java.io.IOException
Writes the PhaseThreeConfiguration to an IOStream in XML encoded from.

Parameters:
ioStream - the IOStream.
isZipped - true, if the document to write shall be zipped, false otherwise
Throws:
java.io.IOException - if an error occures during writing the encoded PhaseThreeConfiguration to stream


Copyright © 2003 DRIM Team. All Rights Reserved.