|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dstc.security.kerberos.FileCredentialStore
An implementation of CredentialStore for MIT v5 credential caches. MIT credential caches are stored as files on local drives, protected only by file permissions.
Compatibilty tests have been performed for MIT Kerberos V versions 1.0.6 to 1.2 inclusive.
Constructor Summary | |
FileCredentialStore()
Default constructor |
Method Summary | |
Credential |
getCredential(String service)
Returns the Credential valid for a specified principal |
Iterator |
getCredentials()
Returns an Iterator to the Credentials in this store Note: to ensure thread-safety, it is necessary to synchronize on CredentialStore instance until all operations on the Iterator instance are completed. |
String |
getDefaultRealm()
Returns the default realm for this store |
String |
getDefaultUser()
Returns the default principal name for this store |
Credential |
getTGTCredential(String realm)
Returns the TGT Credential (a Credential which contains a TGT) valid for a specified realm |
void |
load(File file)
Loads this CredentialStore from a File. |
void |
put(Credential cred)
Adds a supplied Credential to this store |
void |
save(File file)
Saves this CredentialStore into a File |
void |
setDefaultUser(PrincipalName name,
String realm)
Sets the default principal and realm for this CredentialStore. |
String |
toString()
Returns a user readable representation of this CredentialStore |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public FileCredentialStore()
Method Detail |
public void setDefaultUser(PrincipalName name, String realm)
public String getDefaultUser()
public String getDefaultRealm()
public Credential getCredential(String service)
public Credential getTGTCredential(String realm)
public Iterator getCredentials()
CredentialStore credStore = ...; ... synchronized (credStore) { Iterator it = credStore.getCredentials(); // perform all necessary operations on iterator ... }
public void put(Credential cred)
public void load(File file) throws IOException
public void save(File file) throws IOException
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |