Class ExtensionsImpl
- java.lang.Object
-
- com.sun.identity.saml2.protocol.impl.ExtensionsImpl
-
- All Implemented Interfaces:
Extensions
public class ExtensionsImpl extends Object implements Extensions
The class defines methods for adding protcol message extension elements.
-
-
Constructor Summary
Constructors Constructor Description ExtensionsImpl()Constructor to create theExtensionsObject.ExtensionsImpl(String xmlString)Constructor to create theExtensionsObject.ExtensionsImpl(Element element)Constructor to create theExtensionsObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetAny()Returns the list ofExtensionsobject.booleanisMutable()Returns value true if object is mutable.voidmakeImmutable()Makes this object immutable.voidsetAny(List value)Sets theExtensionsobject.StringtoXMLString()Returns a String representation of this object.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation of this object.
-
-
-
Constructor Detail
-
ExtensionsImpl
public ExtensionsImpl()
Constructor to create theExtensionsObject.
-
ExtensionsImpl
public ExtensionsImpl(Element element) throws SAML2Exception
Constructor to create theExtensionsObject.- Parameters:
element- the Document Element ofExtensionsobject.- Throws:
SAML2Exception- ifExtensionscannot be created.
-
ExtensionsImpl
public ExtensionsImpl(String xmlString) throws SAML2Exception
Constructor to create theExtensionsObject.- Parameters:
xmlString- the XML String representation of this object.- Throws:
SAML2Exception- ifExtensionscannot be created.
-
-
Method Detail
-
setAny
public void setAny(List value) throws SAML2Exception
Sets theExtensionsobject.- Specified by:
setAnyin interfaceExtensions- Parameters:
value- List of XML StringsExtensionsobjects- Throws:
SAML2Exception- if the object is immutable.- See Also:
getAny()
-
getAny
public List getAny()
Returns the list ofExtensionsobject.- Specified by:
getAnyin interfaceExtensions- Returns:
- a List of XML Strings
Extensionsobjects. - See Also:
setAny(List)
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation of this object.- Specified by:
toXMLStringin interfaceExtensions- Returns:
- a String representation of this object.
- Throws:
SAML2Exception- if cannot convert to String.
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation of this object.- Specified by:
toXMLStringin interfaceExtensions- 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:
- the String representation of this Object.
- Throws:
SAML2Exception- if cannot convert to String.
-
makeImmutable
public void makeImmutable()
Makes this object immutable.- Specified by:
makeImmutablein interfaceExtensions
-
isMutable
public boolean isMutable()
Returns value true if object is mutable.- Specified by:
isMutablein interfaceExtensions- Returns:
- true if object is mutable.
-
-