Skip navigation links

Oracle Fusion Middleware SAML 2.0 Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10676-04


oracle.security.xmlsec.saml2.protocol
Class NameIDPolicy

java.lang.Object
  extended by oracle.security.xmlsec.util.XMLNode
      extended by oracle.security.xmlsec.util.XMLElement
          extended by oracle.security.xmlsec.saml2.protocol.NameIDPolicy


public class NameIDPolicy
extends oracle.security.xmlsec.util.XMLElement

Represents the constraints on the name identifier in the subject of an assertion.


Field Summary

 

Fields inherited from class oracle.security.xmlsec.util.XMLNode
node, systemId

 

Constructor Summary
NameIDPolicy(org.w3c.dom.Document owner)
          Creates a new NameIDPolicy instance.
NameIDPolicy(org.w3c.dom.Element element)
          Creates a new NameIDPolicy instance from the given Element node.
NameIDPolicy(org.w3c.dom.Element element, java.lang.String systemId)
          Creates a new NameIDPolicy instance from the given Element node.

 

Method Summary
 boolean getAllowCreate()
          Gets the AllowCreate attribute which determines if the IDP is allowed to create a new identifier when fulfilling the AuthnRequest.
 java.lang.String getFormat()
          Gets the format attribute.
 java.lang.String getSPNameQualifier()
          Gets the SP name qualifier in which the subject identifier will be returned.
 void setAllowCreate(boolean allow)
          Sets the AllowCreate attribute which determines if the IDP is allowed to create a new identifier when fulfilling the AuthnRequest.
 void setFormat(java.lang.String uri)
          Sets the format attribute of this NameIDPolicy object.
 void setSPNameQualifier(java.lang.String spNameQualifier)
          Sets the SP name qualifier in which the subject identifier will be returned.

 

Methods inherited from class oracle.security.xmlsec.util.XMLElement
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix

 

Methods inherited from class oracle.security.xmlsec.util.XMLNode
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

NameIDPolicy

public NameIDPolicy(org.w3c.dom.Element element)
             throws org.w3c.dom.DOMException
Creates a new NameIDPolicy instance from the given Element node.
Parameters:
element - A NameIDPolicy element.
Throws:
org.w3c.dom.DOMException

NameIDPolicy

public NameIDPolicy(org.w3c.dom.Element element,
                    java.lang.String systemId)
             throws org.w3c.dom.DOMException
Creates a new NameIDPolicy instance from the given Element node.
Parameters:
element - A NameIDPolicy element.
systemId - The URI string system ID for the NameIDPolicy.
Throws:
org.w3c.dom.DOMException

NameIDPolicy

public NameIDPolicy(org.w3c.dom.Document owner)
             throws org.w3c.dom.DOMException
Creates a new NameIDPolicy instance.
Parameters:
owner - The owner document of the new NameIDPolicy instance..
Throws:
org.w3c.dom.DOMException

Method Detail

setSPNameQualifier

public void setSPNameQualifier(java.lang.String spNameQualifier)
Sets the SP name qualifier in which the subject identifier will be returned.
Parameters:
spNameQualifier - A String value that determines the name of the service provider or affiliations of service providers of the subject.

getSPNameQualifier

public java.lang.String getSPNameQualifier()
Gets the SP name qualifier in which the subject identifier will be returned.
Returns:
A String object representing the name of the service provider or affiliations of service providers of the subject or null if none has been set.

setFormat

public void setFormat(java.lang.String uri)
Sets the format attribute of this NameIDPolicy object.

Any of the formats defined in OASIS SAML 2.0 can be specified.

Parameters:
uri - A URI representing the syntax used to describe the name of the subject.

getFormat

public java.lang.String getFormat()
Gets the format attribute.
Returns:
A URI representing the syntax used to describe the name of the subject.

setAllowCreate

public void setAllowCreate(boolean allow)
Sets the AllowCreate attribute which determines if the IDP is allowed to create a new identifier when fulfilling the AuthnRequest.
Parameters:
allow - A boolean.

getAllowCreate

public boolean getAllowCreate()
Gets the AllowCreate attribute which determines if the IDP is allowed to create a new identifier when fulfilling the AuthnRequest.
Returns:
A boolean value.

Skip navigation links

Oracle Fusion Middleware SAML 2.0 Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10676-04


Copyright © 2005, 2011 , Oracle. All rights reserved.