Skip navigation links

Oracle Security Developer Tools SAML 2.0 Java API Reference
11g (11.1.1)

E10676-02


oracle.security.xmlsec.saml2.core
Class Conditions

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


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

Represents constraints on the acceptable use of assertions.


Field Summary

 

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

 

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

 

Method Summary
 void addCondition(Condition condition)
          Adds a Condition.
 java.util.List getAudienceRestrictions()
          Gets the list of AudienceRestriction objects contained in this Conditions.
 java.util.List getConditions()
          Gets the list of Condition objects contained in this Conditions.
 java.util.Date getNotBefore()
          Returns the time instant before which the subject can not be confirmed.
 java.util.Date getNotOnOrAfter()
          Returns the time instant on or after which the subject can not be confirmed.
 java.util.List getOneTimeUses()
          Gets the list of OneTimeUse objects contained in this Conditions.
 java.util.List getProxyRestrictions()
          Gets the list of ProxyRestriction objects contained in this Conditions.
 void setNotBefore(java.util.Date notBefore)
          Sets the time instant before which the subject can not be confirmed.
 void setNotOnOrAfter(java.util.Date notOnOrAfter)
          Sets the time instant on or after which the subject can not be confirmed.

 

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

Conditions

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

Conditions

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

Conditions

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

Method Detail

setNotBefore

public void setNotBefore(java.util.Date notBefore)
Sets the time instant before which the subject can not be confirmed.
Parameters:
notBefore - The specified time.

getNotBefore

public java.util.Date getNotBefore()
Returns the time instant before which the subject can not be confirmed.
Returns:
The specified time or null if not specified.

setNotOnOrAfter

public void setNotOnOrAfter(java.util.Date notOnOrAfter)
Sets the time instant on or after which the subject can not be confirmed.
Parameters:
notOnOrAfter - The specified time.

getNotOnOrAfter

public java.util.Date getNotOnOrAfter()
Returns the time instant on or after which the subject can not be confirmed.
Returns:
The specified time or null if not specified.

addCondition

public void addCondition(Condition condition)
Adds a Condition.
Parameters:
condition - The Condition to add.

getConditions

public java.util.List getConditions()
Gets the list of Condition objects contained in this Conditions.
Returns:
A List containing Condition objects, or an empty List if no Condition has been set.

getAudienceRestrictions

public java.util.List getAudienceRestrictions()
Gets the list of AudienceRestriction objects contained in this Conditions.
Returns:
A List containing AudienceRestriction objects, or an empty List if no AudienceRestriction has been set.

getOneTimeUses

public java.util.List getOneTimeUses()
Gets the list of OneTimeUse objects contained in this Conditions.
Returns:
A List containing OneTimeUse objects, or an empty List if no OneTimeUse has been set.

getProxyRestrictions

public java.util.List getProxyRestrictions()
Gets the list of ProxyRestriction objects contained in this Conditions.
Returns:
A List containing ProxyRestriction objects, or an empty List if no ProxyRestriction has been set.

Skip navigation links

Oracle Security Developer Tools SAML 2.0 Java API Reference
11g (11.1.1)

E10676-02


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