org.openxri.saml
Class Conditions

java.lang.Object
  extended by org.openxri.saml.Conditions

public class Conditions
extends java.lang.Object

This class provides encapsulation of a SAML 2.0 Conditions element

Author:
=chetan

Constructor Summary
Conditions()
          Creates an empty SAML conditions element
Conditions(org.w3c.dom.Element oElem)
          This method populates the object from DOM.
 
Method Summary
 java.lang.String dump(java.lang.String sTab)
          Returns object as a formatted XML string.
 void fromDOM(org.w3c.dom.Element oElem)
          This method populates the object from DOM.
 java.util.Date getNotAfter()
          Returns the notOnOrAfter attribute
 java.util.Date getNotBefore()
          Returns the notBefore attribute
 boolean isValid()
          Returns true if the current time is within the notBefore and NotOnOrAfter attributes.
 void reset()
          Resets the internal state of this object
 void setNotAfter(java.util.Date oVal)
          Sets the notOnOrAfter attribute
 void setNotBefore(java.util.Date oVal)
          Sets the notBefore attribute
 org.w3c.dom.Element toDOM(org.w3c.dom.Document oDoc)
          This method will make DOM using the specified document.
 java.lang.String toString()
          Returns formatted object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Conditions

public Conditions()
Creates an empty SAML conditions element


Conditions

public Conditions(org.w3c.dom.Element oElem)
This method populates the object from DOM. It does not keep a copy of the DOM around. Whitespace information is lost in this process.

Method Detail

toString

public java.lang.String toString()
Returns formatted object. Do not use if signature needs to be preserved.

Overrides:
toString in class java.lang.Object

dump

public java.lang.String dump(java.lang.String sTab)
Returns object as a formatted XML string.

Parameters:
sTab - - The characters to prepend before each new line

reset

public void reset()
Resets the internal state of this object


fromDOM

public void fromDOM(org.w3c.dom.Element oElem)
This method populates the object from DOM. It does not keep a copy of the DOM around. Whitespace information is lost in this process.


isValid

public boolean isValid()
Returns true if the current time is within the notBefore and NotOnOrAfter attributes.


toDOM

public org.w3c.dom.Element toDOM(org.w3c.dom.Document oDoc)
This method will make DOM using the specified document. If any DOM state has been stored with the object, it will not be used in this method. This method generates a reference-free copy of new DOM.

Parameters:
oDoc - - The document to use for generating DOM

getNotAfter

public java.util.Date getNotAfter()
Returns the notOnOrAfter attribute


setNotAfter

public void setNotAfter(java.util.Date oVal)
Sets the notOnOrAfter attribute


getNotBefore

public java.util.Date getNotBefore()
Returns the notBefore attribute


setNotBefore

public void setNotBefore(java.util.Date oVal)
Sets the notBefore attribute



Copyright © 2005-2012. All Rights Reserved.