public class KerberosTime extends Object implements Comparable<KerberosTime>, Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
KerberosTime(long date)
Creates a new instance of a KerberosTime object
|
KerberosTime(String date)
Creates a new instance of a KerberosTime object
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(KerberosTime that)
compares current kerberos time with the given kerberos time
|
boolean |
equals(Object obj) |
String |
getDate() |
static KerberosTime |
getTime(String zuluTime)
Returns the
KerberosTime for a given zulu time. |
int |
hashCode() |
String |
toString() |
public static final KerberosTime INFINITY
KerberosTime
"infinity."public static final int MINUTE
public static final int DAY
public static final int WEEK
public KerberosTime(String date)
date
- the KerberosTime to storepublic KerberosTime(long date)
public static KerberosTime getTime(String zuluTime) throws ParseException
KerberosTime
for a given zulu time.zuluTime
- KerberosTime
.ParseException
public int compareTo(KerberosTime that)
compareTo
in interface Comparable<KerberosTime>
that
- the kerberos time against which the current kerberos time is comparedCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.