Class Conditions
- java.lang.Object
-
- com.sun.xml.wss.saml.internal.saml11.jaxb20.ConditionsType
-
- com.sun.xml.wss.saml.assertion.saml11.jaxb20.Conditions
-
- All Implemented Interfaces:
Conditions
public class Conditions extends ConditionsType implements Conditions
The validity of anAssertionMAY be subject to a set ofConditions. EachConditionevaluates to a value that is Valid, Invalid or Indeterminate.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Loggerlog-
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.ConditionsType
audienceRestrictionConditionOrDoNotCacheConditionOrCondition, notBefore, notOnOrAfter
-
-
Constructor Summary
Constructors Constructor Description Conditions()Constructor taking in nothing (SAML spec allows it)Conditions(ConditionsType cType)Conditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List arc, List doNotCacheCnd)Constructs an instance ofConditions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConditionsTypefromElement(Element element)Constructs aConditionselement from an existing XML block.List<Object>getConditions()Gets the value of the audienceRestrictionConditionOrDoNotCacheConditionOrCondition property.DategetNotBeforeDate()Gets the value of the notBefore property.DategetNotOnOrAfterDate()Gets the value of the notOnOrAfter property.-
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.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(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List arc, List doNotCacheCnd)
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.condition-arc- theAudienceRestrictionConditionto 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(ConditionsType cType)
-
-
Method Detail
-
getNotBeforeDate
public Date getNotBeforeDate()
Description copied from interface:ConditionsGets the value of the notBefore property.- Specified by:
getNotBeforeDatein interfaceConditions- Returns:
- object is
Date
-
getNotOnOrAfterDate
public Date getNotOnOrAfterDate()
Description copied from interface:ConditionsGets the value of the notOnOrAfter property.- Specified by:
getNotOnOrAfterDatein interfaceConditions- Returns:
- object is
Date
-
getConditions
public List<Object> 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
public static ConditionsType fromElement(Element element) throws SAMLException
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.
-
-