Class NameIDImplWithoutSPNameQualifier
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.NameIDTypeImpl
-
- com.sun.identity.saml2.assertion.impl.NameIDImpl
-
- com.sun.identity.saml2.assertion.impl.NameIDImplWithoutSPNameQualifier
-
- All Implemented Interfaces:
NameID,NameIDType,Serializable
public class NameIDImplWithoutSPNameQualifier extends NameIDImpl implements NameID
TheNameIDis used in various SAML assertion constructs such asSubjectandSubjectConfirmationelements, and in various protocol messages.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml2.assertion.impl.NameIDImpl
NAME_ID_ELEMENT
-
Fields inherited from class com.sun.identity.saml2.assertion.impl.NameIDTypeImpl
FORMAT_ATTR, NAME_ID_TYPE_ELEMENT, NAME_QUALIFIER_ATTR, SP_NAME_QUALIFIER_ATTR, SP_PROVIDED_ID_ATTR
-
-
Constructor Summary
Constructors Constructor Description NameIDImplWithoutSPNameQualifier()Default constructorNameIDImplWithoutSPNameQualifier(String xml)This constructor is used to buildNameIDobject from a XML string.NameIDImplWithoutSPNameQualifier(Element element)This constructor is used to buildNameIDobject 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(boolean includeNSPrefix, boolean declareNS)Returns a String representation-
Methods inherited from class com.sun.identity.saml2.assertion.impl.NameIDImpl
encrypt, toXMLString
-
Methods inherited from class com.sun.identity.saml2.assertion.impl.NameIDTypeImpl
getFormat, getNameQualifier, getSPNameQualifier, getSPProvidedID, getValue, getValueAndAttributes, isMutable, makeImmutable, setFormat, setNameQualifier, setSPNameQualifier, setSPProvidedID, setValue
-
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.NameIDType
getFormat, getNameQualifier, getSPNameQualifier, getSPProvidedID, getValue, isMutable, makeImmutable, setFormat, setNameQualifier, setSPNameQualifier, setSPProvidedID, setValue, toXMLString
-
-
-
-
Constructor Detail
-
NameIDImplWithoutSPNameQualifier
public NameIDImplWithoutSPNameQualifier()
Default constructor
-
NameIDImplWithoutSPNameQualifier
public NameIDImplWithoutSPNameQualifier(String xml) throws SAML2Exception
This constructor is used to buildNameIDobject from a XML string.- Parameters:
xml- Ajava.lang.Stringrepresenting aNameIDobject- Throws:
SAML2Exception- if it could not process the XML string
-
NameIDImplWithoutSPNameQualifier
public NameIDImplWithoutSPNameQualifier(Element element) throws SAML2Exception
This constructor is used to buildNameIDobject from a block of existing XML that has already been built into a DOM.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forNameIDobject- Throws:
SAML2Exception- if it could not process the Element
-
-
Method Detail
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Description copied from class:NameIDImplReturns a String representation- Specified by:
toXMLStringin interfaceNameIDType- Overrides:
toXMLStringin classNameIDImpl- 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
-
-