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

java.lang.Object
  extended by com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsTypeImpl
      extended by com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsImpl
          extended by com.sun.xml.wss.saml.assertion.saml11.jaxb10.Conditions
All Implemented Interfaces:
com.sun.xml.bind.JAXBObject, com.sun.xml.bind.RIElement, com.sun.xml.wss.saml.internal.saml11.jaxb10.Conditions, com.sun.xml.wss.saml.internal.saml11.jaxb10.ConditionsType, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallableObject, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.ValidatableObject, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializable, Element

public class Conditions
extends com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsImpl
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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsImpl
com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsImpl.Unmarshaller
 
Field Summary
protected static Logger log
           
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsImpl
version
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsTypeImpl
_AudienceRestrictionConditionOrDoNotCacheConditionOrCondition, _NotBefore, _NotOnOrAfter
 
Constructor Summary
Conditions()
          Constructor taking in nothing (SAML spec allows it)
Conditions(Calendar notBefore, Calendar notOnOrAfter, List condition, List arc, List doNotCacheCnd)
          Constructs an instance of Conditions.
Conditions(com.sun.xml.wss.saml.internal.saml11.jaxb10.ConditionsType cType)
           
 
Method Summary
static com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsTypeImpl 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.jaxb10.impl.ConditionsImpl
____jaxb_ri____getLocalName, ____jaxb_ri____getNamespaceURI, createRawValidator, createUnmarshaller, getPrimaryInterface, serializeAttributes, serializeBody, serializeURIs
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsTypeImpl
_getAudienceRestrictionConditionOrDoNotCacheConditionOrCondition, getAudienceRestrictionConditionOrDoNotCacheConditionOrCondition, getNotBefore, getNotOnOrAfter, setNotBefore, setNotOnOrAfter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.wss.saml.internal.saml11.jaxb10.ConditionsType
getAudienceRestrictionConditionOrDoNotCacheConditionOrCondition, getNotBefore, getNotOnOrAfter, setNotBefore, setNotOnOrAfter
 

Field Detail

log

protected static final Logger log
Constructor Detail

Conditions

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


Conditions

public Conditions(Calendar notBefore,
                  Calendar 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(com.sun.xml.wss.saml.internal.saml11.jaxb10.ConditionsType cType)
Method Detail

getNotBeforeDate

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

Returns:
object is Date

getNotOnOrAfterDate

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

Returns:
object is Date

getConditions

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

Returns:
Objects of the following type(s) are in the list DoNotCacheCondition AudienceRestrictionCondition Condition

fromElement

public static com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.ConditionsTypeImpl 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.