Class Conditions
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
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
FieldsFields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.ConditionsType
conditionOrAudienceRestrictionOrOneTimeUse, notBefore, notOnOrAfter -
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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 ofConditions. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionsTypefromElement(Element element) Constructs aConditionselement from an existing XML block.Gets the value of the audienceRestrictionConditionOrDoNotCacheConditionOrCondition property.Gets the value of the notBefore property.Gets the value of the notOnOrAfter property.Methods inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.ConditionsType
getConditionOrAudienceRestrictionOrOneTimeUse, getNotBefore, getNotOnOrAfter, setNotBefore, setNotOnOrAfter
-
Field Details
-
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 ofConditions.- 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- theAudienceRestrictionConditionto be added. Can be null, if no audience restriction.
-
Conditions
-
-
Method Details
-
getNotBeforeDate
Description copied from interface:ConditionsGets the value of the notBefore property.- Specified by:
getNotBeforeDatein interfaceConditions- Returns:
- object is
Date
-
getNotOnOrAfterDate
Description copied from interface:ConditionsGets the value of the notOnOrAfter property.- Specified by:
getNotOnOrAfterDatein interfaceConditions- Returns:
- object is
Date
-
getConditions
Description copied from interface:ConditionsGets the value of the audienceRestrictionConditionOrDoNotCacheConditionOrCondition property.- Specified by:
getConditionsin interfaceConditions- Returns:
- Objects of the following type(s) are in the list
DoNotCacheConditionAudienceRestrictionConditionCondition
-
fromElement
Constructs aConditionselement from an existing XML block.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forConditionsobject- Throws:
SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
-