Class NameIDPolicyImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.saml.saml2.core.impl.NameIDPolicyImpl
-
- All Implemented Interfaces:
XMLObject,SAMLObject,NameIDPolicy
public class NameIDPolicyImpl extends AbstractXMLObject implements NameIDPolicy
Concrete implementation ofNameIDPolicy.
-
-
Field Summary
Fields Modifier and Type Field Description private XSBooleanValueallowCreateNameID Format URI.private StringformatNameID Format URI.private StringspNameQualifierNameID Format URI.-
Fields inherited from interface org.opensaml.saml.saml2.core.NameIDPolicy
ALLOW_CREATE_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, FORMAT_ATTRIB_NAME, SP_NAME_QUALIFIER_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNameIDPolicyImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAllowCreate()Gets the AllowCreate value.XSBooleanValuegetAllowCreateXSBoolean()Gets the AllowCreate value.StringgetFormat()Gets the format of the NameIDPolicy.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.StringgetSPNameQualifier()Gets the SPNameQualifier value.voidsetAllowCreate(Boolean newAllowCreate)Sets the AllowCreate value.voidsetAllowCreate(XSBooleanValue newAllowCreate)Sets the AllowCreate value.voidsetFormat(String newFormat)Sets the format of the NameIDPolicy.voidsetSPNameQualifier(String newSPNameQualifier)Sets the SPNameQualifier value.-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Field Detail
-
format
private String format
NameID Format URI.
-
spNameQualifier
private String spNameQualifier
NameID Format URI.
-
allowCreate
private XSBooleanValue allowCreate
NameID Format URI.
-
-
Constructor Detail
-
NameIDPolicyImpl
protected NameIDPolicyImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Detail
-
getFormat
public String getFormat()
Gets the format of the NameIDPolicy.- Specified by:
getFormatin interfaceNameIDPolicy- Returns:
- the format of the NameIDPolicy
-
setFormat
public void setFormat(String newFormat)
Sets the format of the NameIDPolicy.- Specified by:
setFormatin interfaceNameIDPolicy- Parameters:
newFormat- the format of the NameIDPolicy
-
getSPNameQualifier
public String getSPNameQualifier()
Gets the SPNameQualifier value.- Specified by:
getSPNameQualifierin interfaceNameIDPolicy- Returns:
- the SPNameQualifier value
-
setSPNameQualifier
public void setSPNameQualifier(String newSPNameQualifier)
Sets the SPNameQualifier value.- Specified by:
setSPNameQualifierin interfaceNameIDPolicy- Parameters:
newSPNameQualifier- the SPNameQualifier value
-
getAllowCreate
public Boolean getAllowCreate()
Gets the AllowCreate value.- Specified by:
getAllowCreatein interfaceNameIDPolicy- Returns:
- the AllowCreate value
-
getAllowCreateXSBoolean
public XSBooleanValue getAllowCreateXSBoolean()
Gets the AllowCreate value.- Specified by:
getAllowCreateXSBooleanin interfaceNameIDPolicy- Returns:
- the AllowCreate value
-
setAllowCreate
public void setAllowCreate(Boolean newAllowCreate)
Sets the AllowCreate value. Boolean values will be marshalled to either "true" or "false".- Specified by:
setAllowCreatein interfaceNameIDPolicy- Parameters:
newAllowCreate- the AllowCreate value
-
setAllowCreate
public void setAllowCreate(XSBooleanValue newAllowCreate)
Sets the AllowCreate value.- Specified by:
setAllowCreatein interfaceNameIDPolicy- Parameters:
newAllowCreate- the AllowCreate value
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-
-