Class BaseIDImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.BaseIDAbstractImpl
-
- com.sun.identity.saml2.assertion.impl.BaseIDImpl
-
- All Implemented Interfaces:
BaseID,BaseIDAbstract
public class BaseIDImpl extends BaseIDAbstractImpl implements BaseID
TheBaseIDis an extension point that allows applications to add new kinds of identifiers.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_ID_ELEMENTstatic StringNAME_QUALIFIER_ATTRstatic StringSP_NAME_QUALIFIER_ATTR
-
Constructor Summary
Constructors Constructor Description BaseIDImpl()Default constructorBaseIDImpl(String xml)This constructor is used to buildBaseIDobject from a XML string.BaseIDImpl(Element element)This constructor is used to buildBaseIDobject from a block of existing XML that has already been built into a DOM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation-
Methods inherited from class com.sun.identity.saml2.assertion.impl.BaseIDAbstractImpl
getNameQualifier, getSPNameQualifier, isMutable, makeImmutable, setNameQualifier, setSPNameQualifier
-
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.assertion.BaseIDAbstract
getNameQualifier, getSPNameQualifier, isMutable, makeImmutable, setNameQualifier, setSPNameQualifier
-
-
-
-
Field Detail
-
BASE_ID_ELEMENT
public static final String BASE_ID_ELEMENT
- See Also:
- Constant Field Values
-
NAME_QUALIFIER_ATTR
public static final String NAME_QUALIFIER_ATTR
- See Also:
- Constant Field Values
-
SP_NAME_QUALIFIER_ATTR
public static final String SP_NAME_QUALIFIER_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseIDImpl
public BaseIDImpl()
Default constructor
-
BaseIDImpl
public BaseIDImpl(String xml) throws SAML2Exception
This constructor is used to buildBaseIDobject from a XML string.- Parameters:
xml- Ajava.lang.Stringrepresenting aBaseIDobject- Throws:
SAML2Exception- if it could not process the XML string
-
BaseIDImpl
public BaseIDImpl(Element element) throws SAML2Exception
This constructor is used to buildBaseIDobject from a block of existing XML that has already been built into a DOM.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forBaseIDobject- Throws:
SAML2Exception- if it could not process the Element
-
-
Method Detail
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceBaseID- 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
- Throws:
SAML2Exception- if something is wrong during conversion
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceBaseID- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
-