|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.kerberos.shared.messages.value.KerberosTime
public class KerberosTime
Implementation of the time object for Kerberos.
Field Summary | |
---|---|
static int |
DAY
The number of milliseconds in a day. |
static KerberosTime |
INFINITY
Constant for the KerberosTime "infinity." |
static int |
MINUTE
The number of milliseconds in a minute. |
static int |
WEEK
The number of milliseconds in a week. |
Constructor Summary | |
---|---|
KerberosTime()
Creates a new instance of KerberosTime. |
|
KerberosTime(java.util.Date time)
Creates a new instance of KerberosTime. |
|
KerberosTime(long time)
Creates a new instance of KerberosTime. |
Method Summary | |
---|---|
int |
compareTo(KerberosTime that)
|
boolean |
equals(KerberosTime time)
Returns whether this KerberosTime is equal to another KerberosTime . |
long |
getTime()
Returns the KerberosTime as a long. |
static KerberosTime |
getTime(java.lang.String zuluTime)
Returns the KerberosTime for a given zulu time. |
boolean |
greaterThan(KerberosTime time)
Returns whether this KerberosTime is greater than a given KerberosTime . |
boolean |
isInClockSkew(long clockSkew)
Returns whether this KerberosTime is within the given clockskew. |
boolean |
isZero()
Returns whether this KerberosTime is zero. |
boolean |
lessThan(KerberosTime time)
Returns whether this KerberosTime is less than a given KerberosTime . |
java.util.Date |
toDate()
Returns the KerberosTime as a Date . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MINUTE
public static final int DAY
public static final int WEEK
public static final KerberosTime INFINITY
KerberosTime
"infinity."
Constructor Detail |
---|
public KerberosTime()
public KerberosTime(long time)
time
- public KerberosTime(java.util.Date time)
time
- Method Detail |
---|
public static KerberosTime getTime(java.lang.String zuluTime) throws java.text.ParseException
KerberosTime
for a given zulu time.
zuluTime
-
KerberosTime
.
java.text.ParseException
public int compareTo(KerberosTime that)
compareTo
in interface java.lang.Comparable<KerberosTime>
public long getTime()
KerberosTime
as a long.
KerberosTime
as a long.public java.util.Date toDate()
KerberosTime
as a Date
.
KerberosTime
as a Date
.public boolean isInClockSkew(long clockSkew)
KerberosTime
is within the given clockskew.
clockSkew
-
KerberosTime
is within the given clockskew.public boolean greaterThan(KerberosTime time)
KerberosTime
is greater than a given KerberosTime
.
time
-
KerberosTime
is greater than a given KerberosTime
.public boolean lessThan(KerberosTime time)
KerberosTime
is less than a given KerberosTime
.
time
-
KerberosTime
is less than a given KerberosTime
.public boolean equals(KerberosTime time)
KerberosTime
is equal to another KerberosTime
.
time
-
KerberosTime
s are equal.public boolean isZero()
KerberosTime
is zero.
KerberosTime
is zero.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |