|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.internal.ktab.KeyTab
public class KeyTab
This class represents key table. The key table functions deal with storing and retrieving service keys for use in authentication exchanges.
| Field Summary |
|---|
| Fields inherited from interface sun.security.mule.krb5.internal.ktab.KeyTabConstants |
|---|
keySize, keyTypeSize, keyVersionSize, KRB5_KT_VNO, KRB5_KT_VNO_1, principalComponentSize, principalSize, principalTypeSize, realmSize, timestampSize |
| Method Summary | |
|---|---|
void |
addEntry(PrincipalName service,
char[] psswd,
Config kerberosConfig)
Adds a new entry in the key table. |
static KeyTab |
create(Config kerberosConfig)
Creates a new default key table. |
static KeyTab |
create(String name,
Config kerberosConfig)
Creates a new default key table. |
void |
createVersion(File file)
Creates key table file version. |
void |
deleteEntry(PrincipalName service)
Removes an entry from the key table. |
boolean |
findServiceEntry(PrincipalName service)
Searches for the service entry in the keytab file. |
KeyTabEntry[] |
getEntries()
Gets the list of service entries in key table. |
static KeyTab |
getInstance(Config kerberosConfig)
Gets the single instance of KeyTab class. |
static KeyTab |
getInstance(File file,
Config kerberosConfig)
Gets the single instance of KeyTab class. |
static KeyTab |
getInstance(String s,
Config kerberosConfig)
|
EncryptionKey |
readServiceKey(PrincipalName service)
Reads the service key from the keytab file. |
EncryptionKey[] |
readServiceKeys(PrincipalName service,
Config kerberosConfig)
Reads all keys for a service from the keytab file that have etypes that have been configured for use. |
static void |
refresh()
|
void |
save()
Saves the file at the directory. |
static String |
tabName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static KeyTab getInstance(String s,
Config kerberosConfig)
public static KeyTab getInstance(File file,
Config kerberosConfig)
file - the key tab file.
public static KeyTab getInstance(Config kerberosConfig)
public EncryptionKey readServiceKey(PrincipalName service)
service - the PrincipalName of the requested service.
public EncryptionKey[] readServiceKeys(PrincipalName service,
Config kerberosConfig)
service - the PrincipalName of the requested service
public boolean findServiceEntry(PrincipalName service)
service - the PrincipalName of the requested service.
public static String tabName()
public void addEntry(PrincipalName service,
char[] psswd,
Config kerberosConfig)
throws KrbException
service - the service which will have a new entry in the key table.psswd - the password which generates the key.
KrbExceptionpublic KeyTabEntry[] getEntries()
KeyTabEntry.
public static KeyTab create(Config kerberosConfig)
throws IOException,
RealmException
IOException
RealmException
public static KeyTab create(String name,
Config kerberosConfig)
throws IOException,
RealmException
IOException
RealmException
public void save()
throws IOException
IOExceptionpublic void deleteEntry(PrincipalName service)
service - the service PrincipalName.
public void createVersion(File file)
throws IOException
file - the key table file.
IOException.
IOExceptionpublic static void refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||