|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ssonet.net.PhaseTwoResult
This class holds a security goal configuration after the security goal negotiation. For each security goal, it says, whether it shall be enforced or not.
Constructor Summary | |
PhaseTwoResult()
Constructor for a new Settings object. |
|
PhaseTwoResult(byte[] encoded)
Create a new PhaseTwoResult from its encoded form. |
|
PhaseTwoResult(org.w3c.dom.Element root)
Creates a new PhaseTwoResult from an XML Document |
Method Summary | |
org.w3c.dom.Document |
asXMLDocument()
Encodes the PhaseTwoResult into an XML Document |
byte[] |
getEncoded()
Returns a PhaseTwoResult encoded to a byte array. |
int |
getSecurityGoalValue(int securityGoalConstant)
Gets a value for a security goal. |
void |
setSecurityGoalValue(int securityGoalConstant,
int value)
Sets a value for a security goal. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PhaseTwoResult()
public PhaseTwoResult(byte[] encoded) throws java.io.InvalidObjectException
encoded
- the configuration in its encoded form.public PhaseTwoResult(org.w3c.dom.Element root) throws java.io.IOException
root
- the Element holding the PhaseTwoConfiguration
java.io.IOException
- if an error occures while decodingMethod Detail |
public void setSecurityGoalValue(int securityGoalConstant, int value)
SSONETConstants
.
value
- true, if the security goal shall be enforced, false otherwisesecurityGoalConstant
- the security goal constant from SSONETConstants
SSONETConstants
public int getSecurityGoalValue(int securityGoalConstant)
SSONETConstants
.
securityGoalConstant
- the security goal constant from SSONETConstants
SSONETConstants
public byte[] getEncoded()
public org.w3c.dom.Document asXMLDocument()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |