APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal.rcache

public Class AuthTime

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.krb5.internal.rcache.AuthTimeWithHash
Imports
java.io.IOException, java.nio.BufferUnderflowException, .ByteBuffer, .ByteOrder, java.nio.channels.SeekableByteChannel, java.nio.charset.StandardCharsets, java.util.StringTokenizer

The class represents an old style replay cache entry. It is only used in a dfl file.
Authors
Sun/Oracle, Yanni Zhang

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final int
pack-priv final int
pack-priv final String

Constructor Summary

AccessConstructor and Description
public
AuthTime(String client, String server, int ctime, int cusec)

Constructs an AuthTime.

Method Summary

Modifier and TypeMethod and Description
public byte[]
encode(boolean
useless here
withHash
)

Encodes to be used in a dfl file

protected byte[]
encode0(String cstring, String sstring)

Encodes to be used in a dfl file

public static AuthTime
readFrom(SeekableByteChannel chan)

Reads an AuthTime or AuthTimeWithHash object from a channel.

private static String
readStringWithLength(SeekableByteChannel chan)

Reads an LC style string from a channel, which is a int32 length plus a UTF-8 encoded string possibly ends with \0.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

clientback to summary
pack-priv final String client
ctimeback to summary
pack-priv final int ctime
cusecback to summary
pack-priv final int cusec
serverback to summary
pack-priv final String server

Constructor Detail

AuthTimeback to summary
public AuthTime(String client, String server, int ctime, int cusec)

Constructs an AuthTime.

Method Detail

encodeback to summary
public byte[] encode(boolean withHash)

Encodes to be used in a dfl file

Parameters
withHash:boolean

useless here

encode0back to summary
protected byte[] encode0(String cstring, String sstring)

Encodes to be used in a dfl file

readFromback to summary
public static AuthTime readFrom(SeekableByteChannel chan) throws IOException

Reads an AuthTime or AuthTimeWithHash object from a channel.

Exceptions
IOException:
if there is a format error
BufferUnderflowException:
if goes beyond the end
readStringWithLengthback to summary
private static String readStringWithLength(SeekableByteChannel chan) throws IOException

Reads an LC style string from a channel, which is a int32 length plus a UTF-8 encoded string possibly ends with \0.

Exceptions
IOException:
if there is a format error
BufferUnderflowException:
if goes beyond the end
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override