public class NameIDImplWithoutSPNameQualifier extends NameIDImpl implements NameID
NameID
is used in various SAML assertion constructs
such as Subject
and SubjectConfirmation
elements, and in various protocol messages.NAME_ID_ELEMENT
FORMAT_ATTR, NAME_ID_TYPE_ELEMENT, NAME_QUALIFIER_ATTR, SP_NAME_QUALIFIER_ATTR, SP_PROVIDED_ID_ATTR
Constructor and Description |
---|
NameIDImplWithoutSPNameQualifier()
Default constructor
|
NameIDImplWithoutSPNameQualifier(Element element)
This constructor is used to build
NameID object from a
block of existing XML that has already been built into a DOM. |
NameIDImplWithoutSPNameQualifier(String xml)
This constructor is used to build
NameID object from a
XML string. |
Modifier and Type | Method and Description |
---|---|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
encrypt, toXMLString
getFormat, getNameQualifier, getSPNameQualifier, getSPProvidedID, getValue, getValueAndAttributes, isMutable, makeImmutable, setFormat, setNameQualifier, setSPNameQualifier, setSPProvidedID, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, getNameQualifier, getSPNameQualifier, getSPProvidedID, getValue, isMutable, makeImmutable, setFormat, setNameQualifier, setSPNameQualifier, setSPProvidedID, setValue, toXMLString
public NameIDImplWithoutSPNameQualifier()
public NameIDImplWithoutSPNameQualifier(String xml) throws SAML2Exception
NameID
object from a
XML string.xml
- A java.lang.String
representing
a NameID
objectSAML2Exception
- if it could not process the XML stringpublic NameIDImplWithoutSPNameQualifier(Element element) throws SAML2Exception
NameID
object from a
block of existing XML that has already been built into a DOM.element
- A org.w3c.dom.Element
representing
DOM tree for NameID
objectSAML2Exception
- if it could not process the Elementpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
NameIDImpl
toXMLString
in interface NameIDType
toXMLString
in class NameIDImpl
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.SAML2Exception
- if something is wrong during conversionCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.