org.opensaml.saml2.core.impl
Class AbstractNameIDType

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml2.core.impl.AbstractNameIDType
All Implemented Interfaces:
NameIDType, ValidatingXMLObject, XMLObject
Direct Known Subclasses:
IssuerImpl, NameIDImpl, RespondToImpl

public class AbstractNameIDType
extends AbstractSAMLObject
implements NameIDType

Abstract implementation of NameIDType.


Field Summary
private  String format
          Format of the Name ID.
private  String name
          Name of the Name ID.
private  String nameQualifier
          Name Qualifier of the Name ID.
private  String spNameQualifier
          SP Name Qualifier of the Name ID.
private  String spProvidedID
          SP ProvidedID of the NameID.
 
Fields inherited from interface org.opensaml.saml2.core.NameIDType
EMAIL, ENCRYPTED, ENTITY, FORMAT_ATTRIB_NAME, KERBEROS, NAME_QUALIFIER_ATTRIB_NAME, PERSISTENT, SP_NAME_QUALIFIER_ATTRIB_NAME, SPPROVIDED_ID_ATTRIB_NAME, TRANSIENT, UNSPECIFIED, WIN_DOMAIN_QUALIFIED, X509_SUBJECT
 
Constructor Summary
protected AbstractNameIDType(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 String getFormat()
          Gets the format of the NameID.
 String getNameQualifier()
          Gets the NameQualifier value.
 List<XMLObject> getOrderedChildren()
          
 String getSPNameQualifier()
          Gets the SPNameQualifier value.
 String getSPProvidedID()
          Gets the SPProvidedID of this NameID.
 String getValue()
          Gets the value of this type.
 void setFormat(String newFormat)
          Sets the format of the NameID.
 void setNameQualifier(String newNameQualifier)
          Sets the NameQualifier value.
 void setSPNameQualifier(String newSPNameQualifier)
          Sets the SPNameQualifier value.
 void setSPProvidedID(String newSPProvidedID)
          Sets the SPProvddedID of this NameID.
 void setValue(String newName)
          Sets the value of this type.
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, hashCode, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

name

private String name
Name of the Name ID.


nameQualifier

private String nameQualifier
Name Qualifier of the Name ID.


spNameQualifier

private String spNameQualifier
SP Name Qualifier of the Name ID.


format

private String format
Format of the Name ID.


spProvidedID

private String spProvidedID
SP ProvidedID of the NameID.

Constructor Detail

AbstractNameIDType

protected AbstractNameIDType(String namespaceURI,
                             String elementLocalName,
                             String namespacePrefix)
Constructor.

Parameters:
namespaceURI - the namespace the element is in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getValue

public String getValue()
Gets the value of this type.

Specified by:
getValue in interface NameIDType
Returns:
the value of this type

setValue

public void setValue(String newName)
Sets the value of this type.

Specified by:
setValue in interface NameIDType
Parameters:
newName - the value of this type

getNameQualifier

public String getNameQualifier()
Gets the NameQualifier value.

Specified by:
getNameQualifier in interface NameIDType
Returns:
the NameQualifier value

setNameQualifier

public void setNameQualifier(String newNameQualifier)
Sets the NameQualifier value.

Specified by:
setNameQualifier in interface NameIDType
Parameters:
newNameQualifier - the NameQualifier value

getSPNameQualifier

public String getSPNameQualifier()
Gets the SPNameQualifier value.

Specified by:
getSPNameQualifier in interface NameIDType
Returns:
the SPNameQualifier value

setSPNameQualifier

public void setSPNameQualifier(String newSPNameQualifier)
Sets the SPNameQualifier value.

Specified by:
setSPNameQualifier in interface NameIDType
Parameters:
newSPNameQualifier - the SPNameQualifier value

getFormat

public String getFormat()
Gets the format of the NameID.

Specified by:
getFormat in interface NameIDType
Returns:
the format of the NameID

setFormat

public void setFormat(String newFormat)
Sets the format of the NameID.

Specified by:
setFormat in interface NameIDType
Parameters:
newFormat - the format of the NameID

getSPProvidedID

public String getSPProvidedID()
Gets the SPProvidedID of this NameID.

Specified by:
getSPProvidedID in interface NameIDType
Returns:
the SPProvidedID of this NameID

setSPProvidedID

public void setSPProvidedID(String newSPProvidedID)
Sets the SPProvddedID of this NameID.

Specified by:
setSPProvidedID in interface NameIDType
Parameters:
newSPProvidedID - the SPProvidedID of this NameID

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.