|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.internal.ccache.CredentialsCache
sun.security.mule.krb5.internal.ccache.FileCredentialsCache
public class FileCredentialsCache
CredentialsCache stores credentials(tickets, session keys, etc) in a semi-permanent store for later use by different program.
| Field Summary | |
|---|---|
PrincipalName |
primaryPrincipal
|
Realm |
primaryRealm
|
Tag |
tag
|
int |
version
|
| Fields inherited from interface sun.security.mule.krb5.internal.ccache.FileCCacheConstants |
|---|
FCC_TAG_DELTATIME, KRB5_FCC_FVNO_1, KRB5_FCC_FVNO_2, KRB5_FCC_FVNO_3, KRB5_FCC_FVNO_4, KRB5_NT_UNKNOWN, MAXNAMELENGTH, TKT_FLG_FORWARDABLE, TKT_FLG_FORWARDED, TKT_FLG_HW_AUTH, TKT_FLG_INITIAL, TKT_FLG_INVALID, TKT_FLG_MAY_POSTDATE, TKT_FLG_POSTDATED, TKT_FLG_PRE_AUTH, TKT_FLG_PROXIABLE, TKT_FLG_PROXY, TKT_FLG_RENEWABLE |
| Method Summary | |
|---|---|
static FileCredentialsCache |
acquireInstance()
|
static FileCredentialsCache |
acquireInstance(PrincipalName principal,
String cache)
|
static String |
checkValidation(String name)
|
Credentials |
getCreds(LoginOptions options,
PrincipalName sname,
Realm srealm)
|
Credentials |
getCreds(PrincipalName sname,
Realm srealm)
Gets a credentials for a specified service. |
Credentials[] |
getCredsList()
Returns the list of credentials entries in the cache file. |
static String |
getDefaultCacheName()
|
Credentials |
getDefaultCreds()
|
PrincipalName |
getPrimaryPrincipal()
|
void |
save()
Saves the credentials cache file to the disk. |
void |
update(Credentials c)
Updates the credentials list. |
| Methods inherited from class sun.security.mule.krb5.internal.ccache.CredentialsCache |
|---|
cacheName, create, create, getInstance, getInstance, getInstance, getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int version
public Tag tag
public PrincipalName primaryPrincipal
public Realm primaryRealm
| Method Detail |
|---|
public static FileCredentialsCache acquireInstance(PrincipalName principal,
String cache)
public static FileCredentialsCache acquireInstance()
public void update(Credentials c)
update in class CredentialsCachec - the credentials.public PrincipalName getPrimaryPrincipal()
getPrimaryPrincipal in class CredentialsCache
public void save()
throws IOException,
Asn1Exception
save in class CredentialsCacheIOException
Asn1Exceptionpublic Credentials[] getCredsList()
getCredsList in class CredentialsCache
public Credentials getCreds(LoginOptions options,
PrincipalName sname,
Realm srealm)
getCreds in class CredentialsCache
public Credentials getCreds(PrincipalName sname,
Realm srealm)
getCreds in class CredentialsCachesname - service principal name.srealm - the realm that the service belongs to.public Credentials getDefaultCreds()
getDefaultCreds in class CredentialsCachepublic static String getDefaultCacheName()
public static String checkValidation(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||