|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.saml.assertion.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.
Constructor Summary | |
Conditions()
Constructor taking in nothing (SAML spec allows it) |
|
Conditions(java.util.Date notBefore,
java.util.Date notOnOrAfter)
Constructor |
|
Conditions(java.util.Date notBefore,
java.util.Date notOnOrAfter,
Condition condition,
AudienceRestrictionCondition arc)
Constructor |
|
Conditions(org.w3c.dom.Element conditionsElement)
This constructor builds a Conditions element from an existing
XML block. |
Method Summary | |
boolean |
addAudienceRestrictionCondition(AudienceRestrictionCondition arc)
Add an audience restriction condition within this Conditions
Element |
boolean |
checkDateValidity(java.util.Date someDate)
Check for whether or not a specific Date falls within the validity interval of this set of conditions |
java.util.Set |
getAudienceRestrictionCondition()
Get Set of the AudienceRestrictionCondition elements held
within this Conditions element |
java.util.Date |
getNotBefore()
Get the earliest time at which the assertion is valid held in this Conditions object. |
java.util.Date |
getNotOnorAfter()
Get the time instant held within this Conditions object at
which the Assertion has expired. |
boolean |
removeAudienceRestrictionCondition(java.lang.String audience)
Remove an audience restriction condition AudienceRestrictionCondition
from this Conditions object wherein the specified
audience has been defined. |
java.lang.String |
toString()
Create a String representation of the element |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Create a String representation of the <Conditions> element |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Conditions()
public Conditions(java.util.Date notBefore, java.util.Date notOnOrAfter) throws SAMLException
notBefore
- : specifies the earliest time instant at which the
assertion is valid.notOnOrAfter:
- specifies the time instant at which the assertion
has expired.SAMLException
- if the notBeofore instant is after notOnOrAfter
instant.public Conditions(java.util.Date notBefore, java.util.Date notOnOrAfter, Condition condition, AudienceRestrictionCondition arc) throws SAMLException
notBefore:
- specifies the earliest time instant at which the
assertion is valid.notOnOrAfter:
- specifies the time instant at which the assertion
has expired.arc
- : the trc
- : the SAMLException
- if there is a problem in input data and it
cannot be processed correctly.public Conditions(org.w3c.dom.Element conditionsElement) throws SAMLException
Conditions
element from an existing
XML block.conditionsElement:
- A org.w3c.dom.Element>/code> 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.Method Detail |
public java.util.Date getNotBefore()
Conditions
object.Conditions
elementpublic java.util.Date getNotOnorAfter()
Conditions
object at
which the Assertion
has expired.Conditions
elementpublic boolean addAudienceRestrictionCondition(AudienceRestrictionCondition arc)
Conditions
Elementarc:
- a AudienceRestrictionCondition
to be added to
this Conditions
public boolean checkDateValidity(java.util.Date someDate)
someDate
- : Any DateConditions
.public java.util.Set getAudienceRestrictionCondition()
Set
of the AudienceRestrictionCondition elements held
within this Conditions
elementSet
of the audience restriction conditions.
Each element contained within is an object of
AudienceRestrictionCondition
type.public boolean removeAudienceRestrictionCondition(java.lang.String audience)
AudienceRestrictionCondition
from this Conditions
object wherein the specified
audience has been defined.audience:
- A string representing audience.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean includeNS, boolean declareNS)
IncludeNS
- : Determines whether or not the namespace qualifier is
prepended to the Element when converted
DeclareNS : Determines whether or not the namespace is declared within
the Element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |