org.apache.directory.server.kerberos.shared.messages.value
Class KerberosTime
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INFINITY
public static final KerberosTime INFINITY
KerberosTime
public KerberosTime()
KerberosTime
public KerberosTime(long time)
KerberosTime
public KerberosTime(java.util.Date time)
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()