|
Oracle Security Developer Tools SAML 1.0/1.1 Java API Reference 11g (11.1.1) E10675-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.saml.NameIdentifier
public class NameIdentifier
The SAML NameIdentifier element specifies a subject by a combination of a name qualifier, a name and a format.
Field Summary | |
---|---|
static java.lang.String |
EMAIL_ADDRESS Format attribute for SAML 1.0 e-mail address: "#emailAddress". |
static java.lang.String |
NAME_ID_FORMAT_EMAIL_ADDRESS Format attribute for SAML 1.1 e-mail address: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress". |
static java.lang.String |
NAME_ID_FORMAT_UNSPECIFIED Format attribute for SAML 1.1 unspecified: "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified". |
static java.lang.String |
NAME_ID_FORMAT_WINDOWS_DOMAIN_QNAME Format attribute for SAML 1.1 windows domain qualified names: "urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName". |
static java.lang.String |
NAME_ID_FORMAT_X509_SUBJECT_NAME Format attribute for SAML 1.1 X509 subject name: "urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName". |
static java.lang.String |
WINDOWS_DOMAIN_QNAME Format attribute for SAML 1.0 windows domain qualified names: "#WindowsDomainQualifiedName". |
static java.lang.String |
X509_SUBJECT_NAME Format attribute for SAML 1.0 X509 subject name: "#X509SubjectName". |
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
|
NameIdentifier(org.w3c.dom.Document owner) Creates a new NameIdentifier instance. |
protected |
NameIdentifier(org.w3c.dom.Document owner, java.lang.String uri, java.lang.String localName) Creates a new NameIdentifier instance. |
|
NameIdentifier(org.w3c.dom.Element element) Creates a new NameIdentifier instance from the given Element node. |
|
NameIdentifier(org.w3c.dom.Element element, java.lang.String SystemId) Creates a new NameIdentifier instance from the given Element node. |
Method Summary | |
---|---|
java.lang.String |
getFormat() Gets the format attribute. |
java.lang.String |
getNameQualifier() Gets the name qualifier attribute. |
javax.security.auth.x500.X500Principal |
getSubjectName() Deprecated. Use getValue() instead. |
java.lang.String |
getValue() Gets the value of this NameIdentifier element. |
void |
setFormat(java.lang.String uri) Sets the format attribute of this NameIdentifier object. |
void |
setNameQualifier(java.lang.String nameQualifier) Sets the name qualifier attribute of this NameIdentifier element. |
void |
setSubjectName(javax.security.auth.x500.X500Principal subjectName) Sets the value of this NameIdentifier element in the case of a X509SubjectName. |
void |
setValue(java.lang.String value) Sets the value of this NameIdentifier element. |
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 |
Field Detail |
---|
public static final java.lang.String NAME_ID_FORMAT_UNSPECIFIED
public static final java.lang.String EMAIL_ADDRESS
public static final java.lang.String NAME_ID_FORMAT_EMAIL_ADDRESS
public static final java.lang.String X509_SUBJECT_NAME
public static final java.lang.String NAME_ID_FORMAT_X509_SUBJECT_NAME
public static final java.lang.String WINDOWS_DOMAIN_QNAME
public static final java.lang.String NAME_ID_FORMAT_WINDOWS_DOMAIN_QNAME
Constructor Detail |
---|
public NameIdentifier(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
NameIdentifier
instance from the given Element node.
element
- A NameIdentifier element.org.w3c.dom.DOMException
public NameIdentifier(org.w3c.dom.Element element, java.lang.String SystemId) throws org.w3c.dom.DOMException
NameIdentifier
instance from the given Element node.
element
- A NameIdentifier element.org.w3c.dom.DOMException
public NameIdentifier(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
NameIdentifier
instance.
owner
- The owner document of the new NameIdentifier.org.w3c.dom.DOMException
protected NameIdentifier(org.w3c.dom.Document owner, java.lang.String uri, java.lang.String localName) throws org.w3c.dom.DOMException
NameIdentifier
instance. This is for use in any sub-class for extension of the NameIdentifier element.
owner
- The owner document of the new NameIdentifier.nsURI
- The namespace URI in which the new NameIdentifier is to be created.localName
- The localName of the element represented by the class that extends this class.org.w3c.dom.DOMException
Method Detail |
---|
public void setNameQualifier(java.lang.String nameQualifier)
nameQualifier
- A String value that determines the security or administrative domain of the subject.public java.lang.String getNameQualifier()
null
if none has been set.public void setFormat(java.lang.String uri)
NameIdentifier
object.
The following formats are defined: #emailAddress
, #X509SubjectName
and #WindowsDomainQualifiedName
.
uri
- A URI representing the syntax used to describe the name of the subject.public java.lang.String getFormat()
public void setValue(java.lang.String value)
NameIdentifier
element.value
- The String value representing an e-mail address as define in RFC 822, a subject name as specified for the contents of <ds:X509SubjectName> element in DSIG or a Windows domain qualified name ("DomainName\UserName").public void setSubjectName(javax.security.auth.x500.X500Principal subjectName)
NameIdentifier
element in the case of a X509SubjectName. This method also calls setFormat(NameIdentifier.X500_SUBJECT_NAME)
subjectName
- Thee subject's X500Name.public java.lang.String getValue()
NameIdentifier
element.public javax.security.auth.x500.X500Principal getSubjectName()
getValue()
instead.X500Name
of this NameIdentifier
element.X500Name
object representing the value of this element or null
if no value has been set or if the format is not of X509SubjectName.
|
Oracle Security Developer Tools SAML 1.0/1.1 Java API Reference 11g (11.1.1) E10675-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |