org.apache.ws.security.util
Class DateUtil

java.lang.Object
  extended by org.apache.ws.security.util.DateUtil

public final class DateUtil
extends Object


Constructor Summary
DateUtil()
           
 
Method Summary
static boolean verifyCreated(Date createdDate, int timeToLive, int futureTimeToLive)
          Return true if the "Created" value is before the current time minus the timeToLive argument, and if the Created value is not "in the future".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtil

public DateUtil()
Method Detail

verifyCreated

public static boolean verifyCreated(Date createdDate,
                                    int timeToLive,
                                    int futureTimeToLive)
Return true if the "Created" value is before the current time minus the timeToLive argument, and if the Created value is not "in the future".

Parameters:
timeToLive - the value in seconds for the validity of the Created time
futureTimeToLive - the value in seconds for the future validity of the Created time
Returns:
true if the Date is before (now-timeToLive), false otherwise


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.