com.sun.identity.saml2.protocol
Interface NameIDPolicy


public interface NameIDPolicy

This interface defines methods to retrieve name identifier related properties.


Method Summary
 java.lang.String getFormat()
          Returns the value of Format attribute.
 java.lang.String getSPNameQualifier()
          Returns the value of the SPNameQualifier attribute.
 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 allowCreate)
          Sets the value of AllowCreate attribute.
 void setFormat(java.lang.String uri)
          Sets the value of the Format attribute.
 void setSPNameQualifier(java.lang.String spNameQualifier)
          Sets the value of SPNameQualifier attribute.
 java.lang.String toXMLString()
          Returns a String representation of this Object.
 java.lang.String toXMLString(boolean includeNSPrefix, boolean declareNS)
          Returns a String representation of this object.
 

Method Detail

getFormat

public java.lang.String getFormat()
Returns the value of Format attribute.

Returns:
the value of Format attribute.
See Also:
#getValue

setFormat

public void setFormat(java.lang.String uri)
               throws SAML2Exception
Sets the value of the Format attribute.

Parameters:
uri - the new value of Format attribute.
Throws:
SAML2Exception - if the object is immutable.
See Also:
getFormat()

getSPNameQualifier

public java.lang.String getSPNameQualifier()
Returns the value of the SPNameQualifier attribute.

Returns:
the value of SPNameQualifier attribute.
See Also:
setSPNameQualifier(String)

setSPNameQualifier

public void setSPNameQualifier(java.lang.String spNameQualifier)
                        throws SAML2Exception
Sets the value of SPNameQualifier attribute.

Parameters:
spNameQualifier - new value of SPNameQualifier attribute.
Throws:
SAML2Exception - if the object is immutable.
See Also:
getSPNameQualifier()

setAllowCreate

public void setAllowCreate(boolean allowCreate)
                    throws SAML2Exception
Sets the value of AllowCreate attribute.

Parameters:
allowCreate - 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.

Returns:
value of AllowCreate attribute.

toXMLString

public java.lang.String toXMLString()
                             throws SAML2Exception
Returns a String representation of this Object.

Returns:
String representation of this Object.
Throws:
SAML2Exception - if cannot create String object.

toXMLString

public java.lang.String toXMLString(boolean includeNSPrefix,
                                    boolean declareNS)
                             throws SAML2Exception
Returns a String representation of this object.

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.


isMutable

public boolean isMutable()
Returns true if object is mutable.

Returns:
true if object is mutable.


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.