Class ArtifactResponseImpl
- java.lang.Object
-
- com.sun.identity.saml2.protocol.impl.StatusResponseImpl
-
- com.sun.identity.saml2.protocol.impl.ArtifactResponseImpl
-
- All Implemented Interfaces:
ArtifactResponse,StatusResponse
public class ArtifactResponseImpl extends StatusResponseImpl implements ArtifactResponse
TheArtifactResopnsemessage has the complex typeArtifactResponseType.<complexType name="ArtifactResponseType"> <complexContent> <extension base="{urn:oasis:names:tc:SAML:2.0:protocol}StatusResponseType"> <sequence> <any/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml2.protocol.impl.StatusResponseImpl
consent, destination, extensions, inResponseTo, isMutable, isSignatureValid, isSigned, issueInstant, issuer, publicKey, responseId, signatureString, signedXMLString, status, version
-
-
Constructor Summary
Constructors Constructor Description ArtifactResponseImpl()Constructor.ArtifactResponseImpl(String xmlString)Constructor withArtifactResponsein xml string format.ArtifactResponseImpl(Element element)Constructor withArtifactResponseinElementformat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAny()Gets theanyelement of the response.voidsetAny(String value)Sets theanyelement of the response.StringtoXMLString()Returns a String representation of this Object.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation of this Object.-
Methods inherited from class com.sun.identity.saml2.protocol.impl.StatusResponseImpl
getConsent, getDestination, getExtensions, getID, getInResponseTo, getIssueInstant, getIssuer, getSignature, getStatus, getVersion, isMutable, isSignatureValid, isSigned, makeImmutable, setConsent, setDestination, setExtensions, setID, setInResponseTo, setIssueInstant, setIssuer, setStatus, setVersion, sign, validateData, validateID, validateIssueInstant, validateStatus, validateVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.saml2.protocol.StatusResponse
getConsent, getDestination, getExtensions, getID, getInResponseTo, getIssueInstant, getIssuer, getSignature, getStatus, getVersion, isMutable, isSignatureValid, isSigned, makeImmutable, setConsent, setDestination, setExtensions, setID, setInResponseTo, setIssueInstant, setIssuer, setStatus, setVersion, sign
-
-
-
-
Constructor Detail
-
ArtifactResponseImpl
public ArtifactResponseImpl()
Constructor. Caller may need to call setters to populate the object.
-
ArtifactResponseImpl
public ArtifactResponseImpl(Element element) throws SAML2Exception
Constructor withArtifactResponseinElementformat.- Parameters:
element- the Document Element- Throws:
SAML2Exception- if there is an error.
-
ArtifactResponseImpl
public ArtifactResponseImpl(String xmlString) throws SAML2Exception
Constructor withArtifactResponsein xml string format.- Throws:
SAML2Exception
-
-
Method Detail
-
getAny
public String getAny()
Gets theanyelement of the response.- Specified by:
getAnyin interfaceArtifactResponse- Returns:
anyelement in xml string format.- See Also:
setAny(String)
-
setAny
public void setAny(String value) throws SAML2Exception
Sets theanyelement of the response.- Specified by:
setAnyin interfaceArtifactResponse- Parameters:
value- newanyelement in xml string format.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getAny()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation of this Object.- Specified by:
toXMLStringin interfaceStatusResponse- Overrides:
toXMLStringin classStatusResponseImpl- Returns:
- a String representation of this Object.
- Throws:
SAML2Exception- if it could not create String object
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation of this Object.- Specified by:
toXMLStringin interfaceStatusResponse- Overrides:
toXMLStringin classStatusResponseImpl- Parameters:
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.- Returns:
- a String representation of this Object.
- Throws:
SAML2Exception- if it could not create String object.
-
-