Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.dstc.security.kerberos.creds
Interface KeyTab

All Known Implementing Classes:
  FileKeyTab

public interface KeyTab

An interface to a Kerberos keytab.

A KeyTab is a keyed (according to owning Principal) table of Kerberos keys.

A concrete implementation is available for compatibility with MIT file-based keytabs.

See Also:
  `FileKeyTab`, `KeyTabEntry`

Method Summary
`Iterator` | `getKeyTabEntries()` Returns an Iterator for all KeyTabEntrys in this KeyTab Note: to ensure thread-safety, it is necessary to synchronize on KeyTab instance until all operations on the Iterator instance are completed.
`KeyTabEntry` | `getKeyTabEntry(String name)` Returns a KeyTabEntry for a given principal
`String` | `getKeyTabType()` Returns the key tab type for this KeyTab

Method Detail

### getKeyTabEntry

    public KeyTabEntry getKeyTabEntry(String name)

  Returns a KeyTabEntry for a given principal

### getKeyTabEntries

    public Iterator getKeyTabEntries()

  Returns an Iterator for all KeyTabEntrys in this KeyTab Note: to ensure thread-safety, it is necessary to synchronize on KeyTab instance until all operations on the Iterator instance are completed. eg.

         KeyTab keytab = ...;
         ...
         synchronized (keytab) {
           Iterator it = keytab.getKeyTabEntries();
           // perform all necessary operations on iterator
           ...
         }

### getKeyTabType

    public String getKeyTabType()

  Returns the key tab type for this KeyTab

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD