java.lang.Object
com.sun.xml.wss.saml.internal.saml20.jaxb20.ConditionsType
com.sun.xml.wss.saml.assertion.saml20.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 Details

    • log

      protected static final Logger log
  • Constructor Details

    • Conditions

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

      public Conditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List ar, List oneTimeUse, List proxyRestriction)
      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.
      ar - the AudienceRestrictionCondition to be added. Can be null, if no audience restriction.
    • Conditions

      public Conditions(ConditionsType cType)
  • Method Details

    • 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:
      element - 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.