Package com.sun.identity.saml.assertion
Class DoNotCacheCondition
- java.lang.Object
-
- com.sun.identity.saml.assertion.Condition
-
- com.sun.identity.saml.assertion.DoNotCacheCondition
-
public class DoNotCacheCondition extends Condition
This is an implementation of the abstractConditionclass, which specifes that the assertion thisDoNotCacheConditionis part of, is the new element in SAML 1.1, that allows an assertion party to express that an assertion should not be cached by the relying party for future use. In another word, such an assertion is meant only for "one-time" use by the relying party.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml.assertion.Condition
INDETERMINATE, INVALID, VALID
-
-
Constructor Summary
Constructors Constructor Description DoNotCacheCondition()Constructs a newDoNotCacheCondition.DoNotCacheCondition(Element doNotCacheConditionElement)Constructs aDoNotCacheConditionelement from an existing XML block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intevaluate()Evaluates the Conditions A method which can be overridden by a plug-in maybe which provides means of evaluating this conditionStringtoString()Creates a String representation of the element.StringtoString(boolean includeNS, boolean declareNS)Returns a String representation of the<DoNotCacheCondition>element.
-
-
-
Constructor Detail
-
DoNotCacheCondition
public DoNotCacheCondition()
Constructs a newDoNotCacheCondition.
-
DoNotCacheCondition
public DoNotCacheCondition(Element doNotCacheConditionElement) throws SAMLException
Constructs aDoNotCacheConditionelement from an existing XML block.- Parameters:
doNotCacheConditionElement- Aorg.w3c.dom.Elementrepresenting DOM tree forDoNotCacheConditionobject.- Throws:
SAMLException- if it could not process theorg.w3c.dom.Elementproperly, implying that there is an error in the sender or in the element definition.
-
-
Method Detail
-
toString
public String toString()
Creates a String representation of the element.
-
toString
public String toString(boolean includeNS, boolean declareNS)
Returns a String representation of the<DoNotCacheCondition>element.- Specified by:
toStringin classCondition- 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
-
-