Class NameIDPolicyImpl

  • All Implemented Interfaces:
    NameIDPolicy

    public class NameIDPolicyImpl
    extends Object
    implements NameIDPolicy
    This interface defines methods to retrieve name identifier related properties.
    • Constructor Detail

      • NameIDPolicyImpl

        public NameIDPolicyImpl()
        Constructor creates NameIDPolicy object.
      • NameIDPolicyImpl

        public NameIDPolicyImpl​(Element element)
                         throws SAML2Exception
        Constructor creates NameIDPolicy object.
        Parameters:
        element - Document Element of NameIDPolicy Object.
        Throws:
        SAML2Exception - if NameIDPolicy cannot be created.
      • NameIDPolicyImpl

        public NameIDPolicyImpl​(String xmlString)
                         throws SAML2Exception
        Returns the NameIDPolicy Object.
        Parameters:
        xmlString - XML String Representation of NameIDPolicy object.
        Throws:
        SAML2Exception - if NameIDPolicy cannot be created.
    • Method Detail

      • setAllowCreate

        public void setAllowCreate​(boolean value)
                            throws SAML2Exception
        Sets the value of AllowCreate attribute.
        Specified by:
        setAllowCreate in interface NameIDPolicy
        Parameters:
        value - e the new value of AllowCreate attribute.
        Throws:
        SAML2Exception - if the object is immutable.
      • isAllowCreate

        public boolean isAllowCreate()
        Returns true if the identity provider is allowed to create a new identifier to represent the principal.
        Specified by:
        isAllowCreate in interface NameIDPolicy
        Returns:
        value of AllowCreate attribute.
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns a String representation
        Specified by:
        toXMLString in interface NameIDPolicy
        Parameters:
        includeNSPrefix - determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - determines whether or not the namespace is declared within the Element.
        Returns:
        String representation of this Object.
        Throws:
        SAML2Exception - if cannot create String object.
      • makeImmutable

        public void makeImmutable()
        Makes this object immutable.
        Specified by:
        makeImmutable in interface NameIDPolicy
      • isMutable

        public boolean isMutable()
        Returns true if object is mutable.
        Specified by:
        isMutable in interface NameIDPolicy
        Returns:
        true if object is mutable.