| java.lang.Object sun.security.krb5.internal.tools.Klist
Klist | public class Klist (Code) | | This class can execute as a command-line tool to list entries in
credential cache and key tab.
author: Yanni Zhang author: Ram Marti version: 1.00 10 Jul 30 |
Method Summary | |
void | displayCache() | void | displayMessage(String target) | void | displayTab() | public static void | main(String[] args) The main program that can be invoked at command line. | void | printHelp() Printes out the help information. | void | processArgs(String[] args) Parses the command line arguments. | String | reformat(String date) Reformats the date from the form -
dow mon dd hh:mm:ss zzz yyyy to mon/dd/yyyy hh:mm
where dow is the day of the week, mon is the month,
dd is the day of the month, hh is the hour of
the day, mm is the minute within the hour,
ss is the second within the minute, zzz is the time zone,
and yyyy is the year. |
displayCache | void displayCache()(Code) | | |
displayTab | void displayTab()(Code) | | |
main | public static void main(String[] args)(Code) | | The main program that can be invoked at command line.
Usage: klist
[[-c] [-f] [-e]] [-k [-t] [-K]] [name]
-c specifes that credential cache is to be listed
-k specifies that key tab is to be listed
name name of the credentials cache or keytab
available options for credential caches:
- -f shows credentials flags
- -e shows the encryption type
available options for keytabs:
-t shows keytab entry timestamps
-K shows keytab entry DES keys
|
printHelp | void printHelp()(Code) | | Printes out the help information.
|
processArgs | void processArgs(String[] args)(Code) | | Parses the command line arguments.
|
reformat | String reformat(String date)(Code) | | Reformats the date from the form -
dow mon dd hh:mm:ss zzz yyyy to mon/dd/yyyy hh:mm
where dow is the day of the week, mon is the month,
dd is the day of the month, hh is the hour of
the day, mm is the minute within the hour,
ss is the second within the minute, zzz is the time zone,
and yyyy is the year.
Parameters: date - the string form of Date object. |
|
|