public class Conditions extends ConditionsType implements Conditions
Assertion MAY be subject to a set of
Conditions. Each Condition evaluates to a value that
is Valid, Invalid or Indeterminate.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log |
conditionOrAudienceRestrictionOrOneTimeUse, notBefore, notOnOrAfter| Constructor and Description |
|---|
Conditions()
Constructor taking in nothing (SAML spec allows it)
|
Conditions(ConditionsType cType) |
Conditions(GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
List condition,
List ar,
List oneTimeUse,
List proxyRestriction)
Constructs an instance of
Conditions. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getConditionOrAudienceRestrictionOrOneTimeUse, getNotBefore, getNotOnOrAfter, setNotBefore, setNotOnOrAfterprotected static final Logger log
public Conditions()
public Conditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List ar, List oneTimeUse, List proxyRestriction)
Conditions.notBefore - specifies the earliest time instant at which the
assertion is valid.notOnOrAfter - specifies the time instant at which the assertion
has expired.condition - ar - the AudienceRestrictionCondition to be
added. Can be null, if no audience restriction.public Conditions(ConditionsType cType)
public Date getNotBeforeDate()
ConditionsgetNotBeforeDate in interface ConditionsDatepublic Date getNotOnOrAfterDate()
ConditionsgetNotOnOrAfterDate in interface ConditionsDatepublic List<Object> getConditions()
ConditionsgetConditions in interface ConditionsDoNotCacheCondition
AudienceRestrictionCondition
Conditionpublic static ConditionsType fromElement(Element element) throws SAMLException
Conditions element from an existing XML block.element - A org.w3c.dom.Element representing
DOM tree for Conditions objectSAMLException - if it could not process the Element properly,
implying that there is an error in the sender or in the
element definition.Copyright © 2005–2018 Oracle Corporation. All rights reserved.