| Modifier and Type | Field and Description |
|---|---|
| private static String | |
| private Vector | |
| private boolean | |
| private boolean | |
| private int | |
| private long | |
| private static Map | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEntry(PrincipalName
the service which will have a new entry in the key table. service, char[] the password which generates the key. psswd, int the kvno to use, -1 means automatic increasing kvno, boolean false if entries with old kvno would be removed.
append)Note if kvno is not -1, entries with the same kvno are always removed Adds a new entry in the key table. |
| public void | addEntry(PrincipalName
the service which will have a new entry in the key table. service, String specified non default salt, cannot be null salt, char[] the password which generates the key. psswd, int the kvno to use, -1 means automatic increasing kvno, boolean false if entries with old kvno would be removed.
append)Note if kvno is not -1, entries with the same kvno are always removed Adds a new entry in the key table. |
| public void | addEntry(PrincipalName
the service which will have a new entry in the key table. service, EncryptionKey[] the keys to be added encKeys, int the kvno to use, -1 means automatic increasing kvno, boolean false if entries with old kvno would be removed.
append)Note if kvno is not -1, entries with the same kvno are always removed Adds a new entry in the key table. |
| public static synchronized KeyTab | |
| public static synchronized KeyTab | |
| public synchronized void | |
| public int | Returns: the number of entries deletedthe service service, int PrincipalName.the etype to match, remove all if -1 etype, int what kvno to remove, -1 for all, -2 for old kvno)Removes entries from the key table. |
| public boolean | Returns: true if the entry is found, otherwise, return false.the PrincipalName of the requested service. service)Searches for the service entry in the keytab file. |
| private static String | Returns: never nullThe location of keytab file will be read from the configuration file If it is not specified, consider user.home as the keytab file's default location. |
| public KeyTabEntry[] | |
| public static KeyTab | Returns: the KeyTab object, never null.the key tab file name. s)Gets a KeyTab object. |
| public static KeyTab | |
| public static KeyTab | |
| private static synchronized KeyTab | Returns: the keytab object, can be invalid, but never null.file name of keytab, must not be null s)Read a keytab file. |
| public PrincipalName | |
| public boolean | |
| public boolean | |
| private void | |
| public static String | |
| public EncryptionKey[] | Returns: an array containing all the service keys, never nullthe PrincipalName of the requested service service)Reads all keys for a service from the keytab file that have etypes that have been configured for use. |
| public synchronized void | |
| public String |
| defaultTabName | back to summary |
|---|---|
| private static String defaultTabName | |
| entries | back to summary |
|---|---|
| private Vector<KeyTabEntry> entries | |
| isMissing | back to summary |
|---|---|
| private boolean isMissing | |
| isValid | back to summary |
|---|---|
| private boolean isValid | |
| kt_vno | back to summary |
|---|---|
| private int kt_vno | |
| lastModified | back to summary |
|---|---|
| private long lastModified | |
| map | back to summary |
|---|---|
| private static Map<String, KeyTab> map | |
| tabName | back to summary |
|---|---|
| private final String tabName | |
| KeyTab | back to summary |
|---|---|
| private KeyTab(String filename) Constructs a KeyTab object. If there is any I/O error or format error during the loading, the isValid flag is set to false, and all half-read entries are dismissed.
| |
| addEntry | back to summary |
|---|---|
| public void addEntry(PrincipalName service, char[] psswd, int kvno, boolean append) throws KrbException Adds a new entry in the key table.
| |
| addEntry | back to summary |
|---|---|
| public void addEntry(PrincipalName service, String salt, char[] psswd, int kvno, boolean append) throws KrbException Adds a new entry in the key table.
| |
| addEntry | back to summary |
|---|---|
| public void addEntry(PrincipalName service, EncryptionKey[] encKeys, int kvno, boolean append) throws KrbException Adds a new entry in the key table.
| |
| create | back to summary |
|---|---|
| public static synchronized KeyTab create() throws IOException, RealmException Creates a new default key table. | |
| create | back to summary |
|---|---|
| public static synchronized KeyTab create(String name) throws IOException, RealmException Creates a new default key table. | |
| createVersion | back to summary |
|---|---|
| public synchronized void createVersion(File file) throws IOException Creates key table file version.
| |
| deleteEntries | back to summary |
|---|---|
| public int deleteEntries(PrincipalName service, int etype, int kvno) Removes entries from the key table.
| |
| findServiceEntry | back to summary |
|---|---|
| public boolean findServiceEntry(PrincipalName service) Searches for the service entry in the keytab file. The etype of the key must be one that has been configured to be used.
| |
| getDefaultTabName | back to summary |
|---|---|
| private static String getDefaultTabName() The location of keytab file will be read from the configuration file If it is not specified, consider user.home as the keytab file's default location.
| |
| getEntries | back to summary |
|---|---|
| public KeyTabEntry[] getEntries() Gets the list of service entries in key table.
| |
| getInstance | back to summary |
|---|---|
| public static KeyTab getInstance(String s) Gets a KeyTab object. | |
| getInstance | back to summary |
|---|---|
| public static KeyTab getInstance(File file) Gets a KeyTab object. | |
| getInstance | back to summary |
|---|---|
| public static KeyTab getInstance() Gets the default KeyTab object.
| |
| getInstance0 | back to summary |
|---|---|
| private static synchronized KeyTab getInstance0(String s) Read a keytab file. Returns a new object and save it into cache when new content (modified since last read) is available. If keytab file is invalid, the old object will be returned. This is a safeguard for partial-written keytab files or non-stable network. Please note that a missing keytab is valid, which is equivalent to an empty keytab. | |
| getOneName | back to summary |
|---|---|
| public PrincipalName getOneName() Returns a principal name in this keytab. Used by
| |
| isMissing | back to summary |
|---|---|
| public boolean isMissing() | |
| isValid | back to summary |
|---|---|
| public boolean isValid() | |
| load | back to summary |
|---|---|
| private void load(KeyTabInputStream kis) throws IOException, RealmException | |
| normalize | back to summary |
|---|---|
| public static String normalize(String name) Normalizes some common keytab name formats into the bare file name. For example, FILE:/etc/krb5.keytab to /etc/krb5.keytab | |
| readServiceKeys | back to summary |
|---|---|
| public EncryptionKey[] readServiceKeys(PrincipalName service) Reads all keys for a service from the keytab file that have etypes that have been configured for use.
| |
| save | back to summary |
|---|---|
| public synchronized void save() throws IOException Saves the file at the directory. | |
| tabName | back to summary |
|---|---|
| public String tabName() | |