Skip navigation links

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

E10676-03


oracle.security.xmlsec.saml2.core
Class AuthnContext

java.lang.Object
  extended by oracle.security.xmlsec.util.XMLNode
      extended by oracle.security.xmlsec.util.XMLElement
          extended by oracle.security.xmlsec.saml2.core.AuthnContext


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

Represents information about the context of an authentication event.


Field Summary

 

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

 

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

 

Method Summary
 void addAuthenticatingAuthority(java.lang.String uri)
          Adds an authenticating authority.
 java.util.List getAuthenticatingAuthoritys()
          Returns the list of authenticating authorities.
 java.lang.String getAuthnContextClassRef()
          Return the authentication context class reference.
 org.w3c.dom.Element getAuthnContextDecl()
          Return the authentication context declaration.
 java.lang.String getAuthnContextDeclRef()
          Return the authentication context declaration reference.
 void setAuthnContextDecl(org.w3c.dom.Element element)
          Adds an authenticating context declaration.
 void setAuthnContextDecl(java.lang.String classRefURI, org.w3c.dom.Element element)
          Adds an authenticating context declaration.
 void setAuthnContextDeclRef(java.lang.String uri)
          Adds an authenticating context declaration reference.
 void setAuthnContextDeclRef(java.lang.String classRefURI, java.lang.String uri)
          Adds an authenticating context class and declaration reference.

 

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

AuthnContext

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

AuthnContext

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

AuthnContext

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

Method Detail

setAuthnContextDeclRef

public void setAuthnContextDeclRef(java.lang.String classRefURI,
                                   java.lang.String uri)
Adds an authenticating context class and declaration reference.

Invoking this method will remove any existing AuthnContextClassRef, AuthnContextDeclRef and AuthnContextDecl elements.

Parameters:
classRefURI - An URI reference to an authentication context class.
uri - An optional URI reference to an authentication context declaration.

setAuthnContextDecl

public void setAuthnContextDecl(java.lang.String classRefURI,
                                org.w3c.dom.Element element)
Adds an authenticating context declaration.

Invoking this method will remove any existing AuthnContextClassRef, AuthnContextDeclRef and AuthnContextDecl elements.

Parameters:
classRefURI - A URI reference to an authentication context class.
element - An optional Element declaring the authentication context.

setAuthnContextDeclRef

public void setAuthnContextDeclRef(java.lang.String uri)
Adds an authenticating context declaration reference.

Invoking this method will remove any existing AuthnContextClassRef, AuthnContextDeclRef and AuthnContextDecl elements.

Parameters:
uri - A URI reference to an authentication context declaration.

setAuthnContextDecl

public void setAuthnContextDecl(org.w3c.dom.Element element)
Adds an authenticating context declaration.

Invoking this method will remove any existing AuthnContextClassRef or AuthnContextDeclRef or AuthnContextDecl elements.

Parameters:
element - An Element declaring the authentication context.

getAuthnContextClassRef

public java.lang.String getAuthnContextClassRef()
Return the authentication context class reference.
Returns:
A URI reference to the authentication context class or null if not specified.

getAuthnContextDeclRef

public java.lang.String getAuthnContextDeclRef()
Return the authentication context declaration reference.
Returns:
A URI reference to the authentication context declaration or null if not specified.

getAuthnContextDecl

public org.w3c.dom.Element getAuthnContextDecl()
Return the authentication context declaration.
Returns:
A Element specifying the authentication context declaration or null if not specified.

addAuthenticatingAuthority

public void addAuthenticatingAuthority(java.lang.String uri)
Adds an authenticating authority.
Parameters:
uri - A URI representing an authenticating authority.

getAuthenticatingAuthoritys

public java.util.List getAuthenticatingAuthoritys()
Returns the list of authenticating authorities.
Returns:
A List containing String objects representing URIs. These URIs define authenticating authorities..

Skip navigation links

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

E10676-03


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