org.opensaml.saml2.common
Class SAML2Helper

java.lang.Object
  extended by org.opensaml.saml2.common.SAML2Helper

public class SAML2Helper
extends Object


Constructor Summary
SAML2Helper()
           
 
Method Summary
static org.joda.time.DateTime getEarliestExpiration(XMLObject xmlObject)
          Gets the earliest expiration instant for a XMLObject.
static org.joda.time.DateTime getEarliestExpiration(XMLObject xmlObject, org.joda.time.DateTime earliestExpiration, org.joda.time.DateTime now)
          Gets the earliest expiration instant within a metadata tree.
static boolean isValid(XMLObject xmlObject)
          Checks to see if the given XMLObject is still valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAML2Helper

public SAML2Helper()
Method Detail

isValid

public static boolean isValid(XMLObject xmlObject)
Checks to see if the given XMLObject is still valid. An XMLObject is valid if, and only if, itself and every ancestral TimeBoundSAMLObject is valid.

Parameters:
xmlObject - the XML object tree to check
Returns:
true of the tree is valid, false if not

getEarliestExpiration

public static org.joda.time.DateTime getEarliestExpiration(XMLObject xmlObject)
Gets the earliest expiration instant for a XMLObject. This method traverses the tree of SAMLObject rooted at the given object and calculates the earliest expiration as the earliest of the following two items:

Parameters:
xmlObject - the XML object tree to get the earliest expiration time from
Returns:
the earliest expiration time

getEarliestExpiration

public static org.joda.time.DateTime getEarliestExpiration(XMLObject xmlObject,
                                                           org.joda.time.DateTime earliestExpiration,
                                                           org.joda.time.DateTime now)
Gets the earliest expiration instant within a metadata tree.

Parameters:
xmlObject - the metadata
earliestExpiration - the earliest expiration instant
now - when this method was called
Returns:
the earliest expiration instant within a metadata tree


Copyright © 1999-2012. All Rights Reserved.