public class ResponseImpl extends StatusResponseImpl implements Response
Response
.
The Response
message element is used when a response consists
of a list of zero or more assertions that satisfy the request. It has the
complex type ResponseType
.
<complexType name="ResponseType"> <complexContent> <extension base="{urn:oasis:names:tc:SAML:2.0:protocol}StatusResponseType"> <choice maxOccurs="unbounded" minOccurs="0"> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Assertion"/> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}EncryptedAssertion"/> </choice> </extension> </complexContent> </complexType>
consent, destination, extensions, inResponseTo, isMutable, isSignatureValid, isSigned, issueInstant, issuer, publicKey, responseId, signatureString, signedXMLString, status, version
Constructor and Description |
---|
ResponseImpl()
Class constructor.
|
ResponseImpl(Element element)
Class constructor with
Response in
Element format. |
ResponseImpl(String xmlString)
Class constructor with
Response in xml string format. |
Modifier and Type | Method and Description |
---|---|
List |
getAssertion()
Returns
Assertion (s) of the response. |
List |
getEncryptedAssertion()
Returns
EncryptedAssertion (s) of the response. |
void |
makeImmutable()
Makes this object immutable.
|
void |
setAssertion(List value)
Sets Assertion(s) of the response.
|
void |
setEncryptedAssertion(List value)
Sets
EncryptedAssertion (s) of the response. |
String |
toXMLString()
Returns a String representation of this Object.
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation of this Object.
|
getConsent, getDestination, getExtensions, getID, getInResponseTo, getIssueInstant, getIssuer, getSignature, getStatus, getVersion, isMutable, isSignatureValid, isSigned, setConsent, setDestination, setExtensions, setID, setInResponseTo, setIssueInstant, setIssuer, setStatus, setVersion, sign, validateData, validateID, validateIssueInstant, validateStatus, validateVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConsent, getDestination, getExtensions, getID, getInResponseTo, getIssueInstant, getIssuer, getSignature, getStatus, getVersion, isMutable, isSignatureValid, isSigned, setConsent, setDestination, setExtensions, setID, setInResponseTo, setIssueInstant, setIssuer, setStatus, setVersion, sign
public ResponseImpl()
public ResponseImpl(Element element) throws SAML2Exception
Response
in
Element
format.element
- the Document Element.SAML2Exception
- if there is an error.public ResponseImpl(String xmlString) throws SAML2Exception
Response
in xml string format.xmlString
- the Response String..SAML2Exception
- if there is an error.public List getAssertion()
Assertion
(s) of the response.getAssertion
in interface Response
Assertion
(s) in the response.setAssertion(List)
public void setAssertion(List value) throws SAML2Exception
setAssertion
in interface Response
value
- List of new Assertion
(s).SAML2Exception
- if the object is immutable.getAssertion()
public List getEncryptedAssertion()
EncryptedAssertion
(s) of the response.getEncryptedAssertion
in interface Response
EncryptedAssertion
(s) in the response.setEncryptedAssertion(List)
public void setEncryptedAssertion(List value) throws SAML2Exception
EncryptedAssertion
(s) of the response.setEncryptedAssertion
in interface Response
value
- List of new EncryptedAssertion
(s).SAML2Exception
- if the object is immutable.getEncryptedAssertion()
public void makeImmutable()
makeImmutable
in interface StatusResponse
makeImmutable
in class StatusResponseImpl
public String toXMLString() throws SAML2Exception
toXMLString
in interface StatusResponse
toXMLString
in class StatusResponseImpl
SAML2Exception
- if it could not create String objectpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface StatusResponse
toXMLString
in class StatusResponseImpl
includeNSPrefix
- 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.SAML2Exception
- if it could not create String object.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.