public class NameIDPolicyImpl extends Object implements NameIDPolicy
Constructor and Description |
---|
NameIDPolicyImpl()
Constructor creates
NameIDPolicy object. |
NameIDPolicyImpl(Element element)
Constructor creates
NameIDPolicy object. |
NameIDPolicyImpl(String xmlString)
Returns the
NameIDPolicy Object. |
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
Returns the value of
Format attribute. |
String |
getSPNameQualifier()
Returns the value of the
SPNameQualifier |
boolean |
isAllowCreate()
Returns true if the identity provider is allowed to create a
new identifier to represent the principal.
|
boolean |
isMutable()
Returns true if object is mutable.
|
void |
makeImmutable()
Makes this object immutable.
|
void |
setAllowCreate(boolean value)
Sets the value of
AllowCreate attribute. |
void |
setFormat(String uri)
Sets the value of the
Format attribute. |
void |
setSPNameQualifier(String spNameQualifier)
Sets the value of
SPNameQualifier attribute. |
String |
toXMLString()
Returns a String representation of this Object.
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
public NameIDPolicyImpl()
NameIDPolicy
object.public NameIDPolicyImpl(Element element) throws SAML2Exception
NameIDPolicy
object.element
- Document Element of NameIDPolicy
Object.SAML2Exception
- if NameIDPolicy cannot be created.
public NameIDPolicyImpl(String xmlString) throws SAML2Exception
NameIDPolicy
Object.xmlString
- XML String Representation of NameIDPolicy
object.SAML2Exception
- if NameIDPolicy cannot be created.
public String getFormat()
Format
attribute.getFormat
in interface NameIDPolicy
Format
attribute.setFormat(String)
public void setFormat(String uri) throws SAML2Exception
Format
attribute.setFormat
in interface NameIDPolicy
uri
- the new value of Format
attribute.SAML2Exception
- if the object is immutable.setFormat(String)
public String getSPNameQualifier()
SPNameQualifier attribute.
getSPNameQualifier
in interface NameIDPolicy
SPNameQualifier
attribute.NameIDPolicy.setSPNameQualifier(String)
public void setSPNameQualifier(String spNameQualifier) throws SAML2Exception
SPNameQualifier
attribute.setSPNameQualifier
in interface NameIDPolicy
spNameQualifier
- new value of SPNameQualifier
attribute.SAML2Exception
- if the object is immutable.NameIDPolicy.getSPNameQualifier()
public void setAllowCreate(boolean value) throws SAML2Exception
AllowCreate
attribute.setAllowCreate
in interface NameIDPolicy
value
- e the new value of AllowCreate
attribute.SAML2Exception
- if the object is immutable.public boolean isAllowCreate()
isAllowCreate
in interface NameIDPolicy
AllowCreate
attribute.public String toXMLString() throws SAML2Exception
toXMLString
in interface NameIDPolicy
SAML2Exception
- if cannot create String object.public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface NameIDPolicy
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 cannot create String object.public void makeImmutable()
makeImmutable
in interface NameIDPolicy
public boolean isMutable()
isMutable
in interface NameIDPolicy
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.