|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.identity.saml.protocol.StatusCode
This class represents the StatusCode and SubStatusCode element. It corresponds to samlp:StatusCodeType in SAML protocol schema.
| Constructor Summary | |
StatusCode(org.w3c.dom.Element statusCode)
This constructor is used to construct a StatusCode from a DOM element. |
|
StatusCode(java.lang.String value)
Construct a StatusCode object from a value String. |
|
StatusCode(java.lang.String value,
StatusCode subCode)
Construct a StatusCode object from a value String and a sub StatusCode. |
|
| Method Summary | |
StatusCode |
getStatusCode()
Gets the sub StatusCode of the StatusCode. |
java.lang.String |
getValue()
Gets the value of the StatusCode. |
void |
setStatusCode(StatusCode subcode)
Sets the sub StatusCode. |
java.lang.String |
toString()
This method translates the StatusCode to an XML document String based on the SAML schema. |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Creates a String representation of the <samlp:StatusCode> element. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StatusCode(org.w3c.dom.Element statusCode)
throws SAMLException
status - An DOM Element that's rooted by <StatusCode>.SAMLException - when an error occurs.
public StatusCode(java.lang.String value,
StatusCode subCode)
throws SAMLException
value - A String that is the value of the StatusCode. The string
could be prefixed by "samlp:". If it is not prefixed, or
prefixed by prefix other than "samlp:", "samlp:" will be used
instead.subCode - The optional sub StatusCodeSAMLException - if value string is null, empty, or contains
wrong value.
public StatusCode(java.lang.String value)
throws SAMLException
value - A String that is the value of the StatusCode. The string
could be prefixed by "samlp:". It it is not prefixed, or
prefixed by prefix other than "samlp:", "samlp:" will be used
instead.SAMLException - if value string is null, empty, or contains
wrong value.| Method Detail |
public void setStatusCode(StatusCode subcode)
subcode - StatusCode to be included.public StatusCode getStatusCode()
public java.lang.String getValue()
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String toString(boolean includeNS,
boolean declareNS)
IncludeNS - : Determines whether or not the namespace qualifier
is prepended to the Element when convertedDeclareNS - : Determines whether or not the namespace is declared
within the Element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||