File: //usr/java/default/man/man1/klist.1
.\" Automatically generated by Pandoc 2.3.1
.\"
.TH "KLIST" "1" "2024" "JDK 17.0.12" "JDK Commands"
.hy
.SH NAME
.PP
klist \- display the entries in the local credentials cache and key
table
.SH SYNOPSIS
.PP
\f[CB]klist\f[R] [\f[CB]\-c\f[R] [\f[CB]\-f\f[R]] [\f[CB]\-e\f[R]] [\f[CB]\-a\f[R]
[\f[CB]\-n\f[R]]]] [\f[CB]\-k\f[R] [\f[CB]\-t\f[R]] [\f[CB]\-K\f[R]]]
[\f[I]name\f[R]] [\f[CB]\-help\f[R]]
.SH DESCRIPTION
.PP
The \f[CB]klist\f[R] tool displays the entries in the local credentials
cache and key table.
After you modify the credentials cache with the \f[CB]kinit\f[R] tool or
modify the keytab with the \f[CB]ktab\f[R] tool, the only way to verify
the changes is to view the contents of the credentials cache or keytab
using the \f[CB]klist\f[R] tool.
The \f[CB]klist\f[R] tool doesn\[aq]t change the Kerberos database.
.SH COMMANDS
.TP
.B \f[CB]\-c\f[R]
Specifies that the credential cache is to be listed.
.RS
.PP
The following are the options for credential cache entries:
.TP
.B \f[CB]\-f\f[R]
Show credential flags.
.RS
.RE
.TP
.B \f[CB]\-e\f[R]
Show the encryption type.
.RS
.RE
.TP
.B \f[CB]\-a\f[R]
Show addresses.
.RS
.RE
.TP
.B \f[CB]\-n\f[R]
If the \f[CB]\-a\f[R] option is specified, don\[aq]t reverse resolve
addresses.
.RS
.RE
.RE
.TP
.B \f[CB]\-k\f[R]
Specifies that key tab is to be listed.
.RS
.PP
List the keytab entries.
The following are the options for keytab entries:
.TP
.B \f[CB]\-t\f[R]
Show keytab entry timestamps.
.RS
.RE
.TP
.B \f[CB]\-K\f[R]
Show keytab entry DES keys.
.RS
.RE
.TP
.B \f[CB]\-e\f[R]
Shows keytab entry key type.
.RS
.RE
.RE
.TP
.B \f[I]name\f[R]
Specifies the credential cache name or the keytab name.
File\-based cache or keytab\[aq]s prefix is \f[CB]FILE:\f[R].
If the name isn\[aq]t specified, the \f[CB]klist\f[R] tool uses default
values for the cache name and keytab.
The \f[CB]kinit\f[R] documentation lists these default values.
.RS
.RE
.TP
.B \f[CB]\-help\f[R]
Displays instructions.
.RS
.RE
.SH EXAMPLES
.PP
List entries in the keytable specified including keytab entry timestamps
and DES keys:
.RS
.PP
\f[CB]klist\ \-k\ \-t\ \-K\ FILE:\\temp\\mykrb5cc\f[R]
.RE
.PP
List entries in the credentials cache specified including credentials
flag and address list:
.RS
.PP
\f[CB]klist\ \-c\ \-f\ FILE:\\temp\\mykrb5cc\f[R]
.RE