Class 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 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.
    • 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
      • 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.