public class Status extends Object
<samlp:StatusType>
in SAML protocol schema.Constructor and Description |
---|
Status(Element status)
This constructor is used to construct a Status from a DOM element.
|
Status(StatusCode code)
Constructs a Status object from a
StatusCode . |
Status(StatusCode code,
String message,
Element detail)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
StatusCode |
getStatusCode()
Gets the
StatusCode of the Response. |
Element |
getStatusDetail()
Gets the
StatusDetail of the Response. |
String |
getStatusMessage()
Returns the
StatusMessage of the Response. |
String |
toString()
This method translates the
AssertionArtifact to an XML
document String based on the SAML schema. |
String |
toString(boolean includeNS,
boolean declareNS)
Creates a String representation of the
<samlp:Status>
element. |
public Status(Element status) throws SAMLException
status
- An DOM Element that's rooted by <Status>.SAMLException
- when an error occurs.public Status(StatusCode code, String message, Element detail) throws SAMLException
code
- StatusCode
.message
- A String that is the StatusMessage
of the
response. It could be null when there is no
StatusMessage
.detail
- A DOM tree element that is the StatusDetail
of the response. It could be null when there is no
StatusDetail
.SAMLException
public Status(StatusCode code) throws SAMLException
StatusCode
.code
- StatusCode
.SAMLException
public StatusCode getStatusCode()
StatusCode
of the Response.StatusCode
of the response.public String getStatusMessage()
StatusMessage
of the Response.StatusMessage
of the
response. null is returned when there is no
StatusMessage
in the response.public Element getStatusDetail()
StatusDetail
of the Response.StatusDetail
of the response. Null is returned if no StatusDetail
in the response.public String toString()
AssertionArtifact
to an XML
document String based on the SAML schema.public String toString(boolean includeNS, boolean declareNS)
<samlp:Status>
element.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.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.