com.ibm.security.krb5.internal.ccache
Class FileCredentialsCache
- java.lang.Object
com.ibm.security.krb5.internal.ccache.CredentialsCache
com.ibm.security.krb5.internal.ccache.FileCredentialsCache
All implemented interfaces:
- public class FileCredentialsCache
- extends CredentialsCache
- implements FileCCacheConstants
Version:
1.00
Author:
Yanni Zhang
Field Summary
Modifier and Type | Field and Description |
---|---|
primaryPrincipal
DOCUMENT ME!
|
|
primaryRealm
DOCUMENT ME!
|
|
tag
DOCUMENT ME!
|
|
|
version
DOCUMENT ME!
|
Fields inherited from interface com.ibm.security.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
Modifier and Type | Method and Description |
---|---|
|
acquireInstance()
DOCUMENT ME!
|
|
acquireInstance(PrincipalName principal,java.lang.String cache)
DOCUMENT ME!
|
|
destroy()
Deletes the credentials cache file.
|
getCreds(LoginOptions options,PrincipalName sname,Realm srealm)
DOCUMENT ME!
|
|
getCreds(PrincipalName sname,Realm srealm)
Gets a credentials for a specified service.
|
|
getCredsList()
Returns the list of credentials entries in the cache file.
|
|
|
getDefaultCacheName()
|
getDefaultCreds()
DOCUMENT ME!
|
|
getPrimaryPrincipal()
DOCUMENT ME!
|
|
|
save()
Saves the credentials cache file to the disk.
|
|
update(Credentials c)
Updates the credentials list.
|
Methods inherited from class com.ibm.security.krb5.internal.ccache.CredentialsCache |
---|
cacheName, create, create, getInstance, getInstance, getInstance, getInstance, getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
version
- public int version
DOCUMENT ME!
tag
- public Tag tag
DOCUMENT ME!
primaryPrincipal
- public PrincipalName primaryPrincipal
DOCUMENT ME!
primaryRealm
- public Realm primaryRealm
DOCUMENT ME!
Method Detail
acquireInstance
- public static FileCredentialsCache acquireInstance( PrincipalName principal,
- java.lang.String cache)
DOCUMENT ME!
Parameters:
principal
- DOCUMENT ME! cache
- DOCUMENT ME! Returns:
DOCUMENT ME!
acquireInstance
- public static FileCredentialsCache acquireInstance( )
DOCUMENT ME!
Returns:
DOCUMENT ME!
update
- public void update(Credentials c)
Updates the credentials list. If the specified credentials for the
service is new, add it to the list. If there is an entry in the list,
replace the old credentials with the new one.
Specified by:
update
in class CredentialsCache
Parameters:
c
- the credentials. getPrimaryPrincipal
- public PrincipalName getPrimaryPrincipal( )
DOCUMENT ME!
Specified by:
getPrimaryPrincipal
in class CredentialsCache
Returns:
DOCUMENT ME!
save
- public void save()
- throws java.io.IOException
- Asn1Exception
Saves the credentials cache file to the disk.
Specified by:
save
in class CredentialsCache
getCredsList
- public Credentials[] getCredsList( )
Returns the list of credentials entries in the cache file.
Specified by:
getCredsList
in class CredentialsCache
Returns:
DOCUMENT ME!
getCreds
- public Credentials getCreds(LoginOptions options,
- PrincipalName sname,
- Realm srealm)
DOCUMENT ME!
Specified by:
getCreds
in class CredentialsCache
Parameters:
options
- DOCUMENT ME! sname
- DOCUMENT ME! srealm
- DOCUMENT ME! Returns:
DOCUMENT ME!
getCreds
- public Credentials getCreds(PrincipalName sname,
- Realm srealm)
Gets a credentials for a specified service.
Specified by:
getCreds
in class CredentialsCache
Parameters:
sname
- service principal name. srealm
- the realm that the service belongs to. Returns:
DOCUMENT ME!
getDefaultCreds
- public Credentials getDefaultCreds( )
DOCUMENT ME!
Specified by:
getDefaultCreds
in class CredentialsCache
Returns:
DOCUMENT ME!
destroy
- public void destroy()
Deletes the credentials cache file. Currently it only can delete files
on Windows platform.
Specified by:
destroy
in class CredentialsCache
getDefaultCacheName
- public static java.lang.String getDefaultCacheName( )