Package com.sun.identity.saml.assertion
Class Condition
- java.lang.Object
-
- com.sun.identity.saml.assertion.Condition
-
- Direct Known Subclasses:
AudienceRestrictionCondition
,DoNotCacheCondition
@SupportedAll public abstract class Condition extends Object
This is an abstract class which servers as an extension point for new conditions. This is one of the element within theConditions
object. Extension elements based on this class MUST use xsi:type attribute to indicate the derived type.
-
-
Field Summary
Fields Modifier and Type Field Description static int
INDETERMINATE
The Condition is indeterminate.static int
INVALID
The Condition is invalid.static int
VALID
The Condition is valid.
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract int
evaluate()
Evaluates this condition An abstract method which can be implemented by any condition extending this Condition object, to provide means of evaluating the condition.abstract String
toString(boolean IncludeNS, boolean DeclareNS)
Returns a String representation of the<saml:Conditions>
element.
-
-
-
Method Detail
-
toString
public abstract String toString(boolean IncludeNS, boolean DeclareNS)
Returns a String representation of the<saml:Conditions>
element.- Parameters:
IncludeNS
- Determines whether or not the namespace qualifier is prepended to the Element when convertedDeclareNS
- Determines whether or not the namespace is declared within the Element.- Returns:
- A string containing the valid XML for this element
-
evaluate
public abstract int evaluate()
Evaluates this condition An abstract method which can be implemented by any condition extending this Condition object, to provide means of evaluating the condition.- Returns:
- evaluation state.
-
-