|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.internal.KerberosTime
public class KerberosTime
Implements the ASN.1 KerberosTime type.
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
| Field Summary | |
|---|---|
static boolean |
NOW
|
static boolean |
UNADJUSTED_NOW
|
| Constructor Summary | |
|---|---|
KerberosTime(boolean initToNow,
Config kerConfig)
|
|
KerberosTime(Config kerberosConfig)
|
|
KerberosTime(Date time,
Config kerberosConfig)
|
|
KerberosTime(sun.security.util.DerValue encoding,
Config kerberosConfig)
Constructs a KerberosTime object. |
|
KerberosTime(long time,
Config kerberosConfig)
|
|
KerberosTime(String time,
Config kerberosConfig)
|
|
| Method Summary | |
|---|---|
byte[] |
asn1Encode()
Encodes this object to a byte array. |
Object |
clone()
|
boolean |
equals(Object obj)
|
static int |
getDefaultSkew(Config kerberosConfig)
|
int |
getMicroSeconds()
|
int |
getSeconds()
|
long |
getTime()
|
boolean |
greaterThan(KerberosTime time)
|
boolean |
greaterThanWRTClockSkew(KerberosTime time)
|
boolean |
greaterThanWRTClockSkew(KerberosTime time,
int clockSkew)
|
int |
hashCode()
|
boolean |
inClockSkew()
|
boolean |
inClockSkew(int clockSkew)
|
boolean |
inClockSkew(int clockSkew,
KerberosTime now)
|
boolean |
inClockSkew(KerberosTime time)
|
boolean |
isZero()
|
static KerberosTime |
parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional,
Config kerberosConfig)
Parse (unmarshal) a kerberostime from a DER input stream. |
void |
setMicroSeconds(int usec)
|
void |
setMicroSeconds(Integer usec)
|
void |
setNow()
|
void |
setSeconds(int sec)
|
void |
setTime(Date time)
|
void |
setTime(long time)
|
Date |
toDate()
|
String |
toGeneralizedTimeString()
Returns a string representation of KerberosTime object. |
String |
toString()
|
static String |
zeroPad(String s,
int length)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean NOW
public static final boolean UNADJUSTED_NOW
| Constructor Detail |
|---|
public KerberosTime(Config kerberosConfig)
public KerberosTime(long time,
Config kerberosConfig)
public KerberosTime(String time,
Config kerberosConfig)
throws Asn1Exception
Asn1Exception
public KerberosTime(sun.security.util.DerValue encoding,
Config kerberosConfig)
throws Asn1Exception,
IOException
encoding - a DER-encoded data.
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
public KerberosTime(Date time,
Config kerberosConfig)
public KerberosTime(boolean initToNow,
Config kerConfig)
| Method Detail |
|---|
public Object clone()
clone in class Object
public static String zeroPad(String s,
int length)
public String toGeneralizedTimeString()
public byte[] asn1Encode()
throws Asn1Exception,
IOException
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.public long getTime()
public void setTime(Date time)
public void setTime(long time)
public Date toDate()
public void setNow()
public int getMicroSeconds()
public void setMicroSeconds(int usec)
public void setMicroSeconds(Integer usec)
public boolean inClockSkew(int clockSkew)
public boolean inClockSkew()
public boolean inClockSkew(int clockSkew,
KerberosTime now)
public boolean inClockSkew(KerberosTime time)
public boolean greaterThanWRTClockSkew(KerberosTime time,
int clockSkew)
public boolean greaterThanWRTClockSkew(KerberosTime time)
public boolean greaterThan(KerberosTime time)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean isZero()
public int getSeconds()
public void setSeconds(int sec)
public static KerberosTime parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional,
Config kerberosConfig)
throws Asn1Exception,
IOException
data - the Der input stream value, which contains one or more marshaled value.explicitTag - tag number.optional - indicates if this data field is optional
Asn1Exception - on error.
IOExceptionpublic static int getDefaultSkew(Config kerberosConfig)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||