org.apache.directory.server.kerberos.shared.messages.value
Class KerberosTime

java.lang.Object
  extended byorg.apache.directory.server.kerberos.shared.messages.value.KerberosTime
All Implemented Interfaces:
java.lang.Comparable

public class KerberosTime
extends java.lang.Object
implements java.lang.Comparable

Implementation of the time object for Kerberos


Field Summary
static KerberosTime INFINITY
           
 
Constructor Summary
KerberosTime()
           
KerberosTime(java.util.Date time)
           
KerberosTime(long time)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(KerberosTime time)
           
 long getTime()
           
static KerberosTime getTime(java.lang.String zuluTime)
           
 boolean greaterThan(KerberosTime time)
           
 boolean isInClockSkew(long clockSkew)
           
 boolean isZero()
           
 boolean lessThan(KerberosTime time)
           
 java.util.Date toDate()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFINITY

public static final KerberosTime INFINITY
Constructor Detail

KerberosTime

public KerberosTime()

KerberosTime

public KerberosTime(long time)

KerberosTime

public KerberosTime(java.util.Date time)
Method Detail

getTime

public static KerberosTime getTime(java.lang.String zuluTime)
                            throws java.text.ParseException
Throws:
java.text.ParseException

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getTime

public long getTime()

toDate

public java.util.Date toDate()

isInClockSkew

public boolean isInClockSkew(long clockSkew)

greaterThan

public boolean greaterThan(KerberosTime time)

lessThan

public boolean lessThan(KerberosTime time)

equals

public boolean equals(KerberosTime time)

isZero

public boolean isZero()

toString

public java.lang.String toString()