Package com.sun.identity.saml2.ecp.impl
Class ECPResponseImpl
- java.lang.Object
-
- com.sun.identity.saml2.ecp.impl.ECPResponseImpl
-
- All Implemented Interfaces:
ECPResponse
public class ECPResponseImpl extends Object implements ECPResponse
This class implementsECPResponseelement. It provides all the methods required byECPResponse
-
-
Constructor Summary
Constructors Constructor Description ECPResponseImpl()Constructs theECPResponseObject.ECPResponseImpl(String xmlString)Constructs theECPResponseObject.ECPResponseImpl(Element element)Constructs theECPRequestObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActor()Returns value ofactorattribute.StringgetAssertionConsumerServiceURL()Returns the value of theAssertionConsumerServiceURLattribute.BooleanisMustUnderstand()Returns value ofmustUnderstandattribute.booleanisMutable()Returns true if object is mutable.voidmakeImmutable()Makes this object immutable.voidsetActor(String actor)Sets the value ofactorattribute.voidsetAssertionConsumerServiceURL(String url)Sets the value of theAssertionConsumerServiceURLattribute.voidsetMustUnderstand(Boolean mustUnderstand)Sets the value of themustUnderstandattribute.StringtoXMLString()Returns a String representation of this Object.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representationprotected voidvalidateData()
-
-
-
Constructor Detail
-
ECPResponseImpl
public ECPResponseImpl()
Constructs theECPResponseObject.
-
ECPResponseImpl
public ECPResponseImpl(Element element) throws SAML2Exception
Constructs theECPRequestObject.- Parameters:
element- the Document Element of ECPResponseobject.- Throws:
SAML2Exception- ifECPResponsecannot be created.
-
ECPResponseImpl
public ECPResponseImpl(String xmlString) throws SAML2Exception
Constructs theECPResponseObject.- Parameters:
xmlString- the XML String representation of this object.- Throws:
SAML2Exception- ifECPResponsecannot be created.
-
-
Method Detail
-
isMustUnderstand
public Boolean isMustUnderstand()
Returns value ofmustUnderstandattribute.- Specified by:
isMustUnderstandin interfaceECPResponse- Returns:
- value of
mustUnderstandattribute.
-
setMustUnderstand
public void setMustUnderstand(Boolean mustUnderstand) throws SAML2Exception
Sets the value of themustUnderstandattribute.- Specified by:
setMustUnderstandin interfaceECPResponse- Parameters:
mustUnderstand- the value ofmustUnderstandattribute.- Throws:
SAML2Exception- if the object is immutable.
-
getActor
public String getActor()
Returns value ofactorattribute.- Specified by:
getActorin interfaceECPResponse- Returns:
- value of
actorattribute
-
setActor
public void setActor(String actor) throws SAML2Exception
Sets the value ofactorattribute.- Specified by:
setActorin interfaceECPResponse- Parameters:
actor- the value ofactorattribute- Throws:
SAML2Exception- if the object is immutable.
-
getAssertionConsumerServiceURL
public String getAssertionConsumerServiceURL()
Returns the value of theAssertionConsumerServiceURLattribute.- Specified by:
getAssertionConsumerServiceURLin interfaceECPResponse- Returns:
- the value of
AssertionConsumerServiceURLattribute. - See Also:
setAssertionConsumerServiceURL(String)
-
setAssertionConsumerServiceURL
public void setAssertionConsumerServiceURL(String url) throws SAML2Exception
Sets the value of theAssertionConsumerServiceURLattribute.- Specified by:
setAssertionConsumerServiceURLin interfaceECPResponse- Parameters:
url- the value ofAssertionConsumerServiceURLattribute.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getAssertionConsumerServiceURL()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation of this Object.- Specified by:
toXMLStringin interfaceECPResponse- 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- Specified by:
toXMLStringin interfaceECPResponse- 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.
-
makeImmutable
public void makeImmutable()
Makes this object immutable.- Specified by:
makeImmutablein interfaceECPResponse
-
isMutable
public boolean isMutable()
Returns true if object is mutable.- Specified by:
isMutablein interfaceECPResponse- Returns:
- true if object is mutable.
-
validateData
protected void validateData() throws SAML2Exception- Throws:
SAML2Exception
-
-