com.sun.xml.wss.saml.assertion.saml11.jaxb20
Class Conditions

java.lang.Object
  extended by com.sun.xml.wss.saml.internal.saml11.jaxb20.ConditionsType
      extended by com.sun.xml.wss.saml.assertion.saml11.jaxb20.Conditions
All Implemented Interfaces:
Conditions

public class Conditions
extends ConditionsType
implements Conditions

The validity of an Assertion MAY be subject to a set of Conditions. Each Condition evaluates to a value that is Valid, Invalid or Indeterminate.


Field Summary
protected static Logger log
           
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.ConditionsType
audienceRestrictionConditionOrDoNotCacheConditionOrCondition, notBefore, notOnOrAfter
 
Constructor Summary
Conditions()
          Constructor taking in nothing (SAML spec allows it)
Conditions(ConditionsType cType)
           
Conditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List arc, List doNotCacheCnd)
          Constructs an instance of Conditions.
 
Method Summary
static ConditionsType fromElement(Element element)
          Constructs a Conditions element from an existing XML block.
 List<Object> getConditions()
          Gets the value of the audienceRestrictionConditionOrDoNotCacheConditionOrCondition property.
 Date getNotBeforeDate()
          Gets the value of the notBefore property.
 Date getNotOnOrAfterDate()
          Gets the value of the notOnOrAfter property.
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.ConditionsType
getAudienceRestrictionConditionOrDoNotCacheConditionOrCondition, getNotBefore, getNotOnOrAfter, setNotBefore, setNotOnOrAfter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

Conditions

public Conditions()
Constructor taking in nothing (SAML spec allows it)


Conditions

public Conditions(GregorianCalendar notBefore,
                  GregorianCalendar notOnOrAfter,
                  List condition,
                  List arc,
                  List doNotCacheCnd)
Constructs an instance of Conditions.

Parameters:
notBefore - specifies the earliest time instant at which the assertion is valid.
notOnOrAfter - specifies the time instant at which the assertion has expired.
condition -
arc - the AudienceRestrictionCondition to be added. Can be null, if no audience restriction.
doNotCacheCnd -
Throws:
SAMLException - if there is a problem in input data and it cannot be processed correctly.

Conditions

public Conditions(ConditionsType cType)
Method Detail

getNotBeforeDate

public Date getNotBeforeDate()
Description copied from interface: Conditions
Gets the value of the notBefore property.

Specified by:
getNotBeforeDate in interface Conditions
Returns:
object is Date

getNotOnOrAfterDate

public Date getNotOnOrAfterDate()
Description copied from interface: Conditions
Gets the value of the notOnOrAfter property.

Specified by:
getNotOnOrAfterDate in interface Conditions
Returns:
object is Date

getConditions

public List<Object> getConditions()
Description copied from interface: Conditions
Gets the value of the audienceRestrictionConditionOrDoNotCacheConditionOrCondition property.

Specified by:
getConditions in interface Conditions
Returns:
Objects of the following type(s) are in the list DoNotCacheCondition AudienceRestrictionCondition Condition

fromElement

public static ConditionsType fromElement(Element element)
                                  throws SAMLException
Constructs a Conditions element from an existing XML block.

Parameters:
conditionsElement - A org.w3c.dom.Element representing DOM tree for Conditions object
Throws:
SAMLException - if it could not process the Element properly, implying that there is an error in the sender or in the element definition.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.