public class

FileCredentialsCache

extends CredentialsCache
implements FileCCacheConstants
java.lang.Object
   ↳ sun.security.mule.krb5.internal.ccache.CredentialsCache
     ↳ sun.security.mule.krb5.internal.ccache.FileCredentialsCache

Class Overview

CredentialsCache stores credentials(tickets, session keys, etc) in a semi-permanent store for later use by different program.

Summary

[Expand]
Inherited Constants
From interface sun.security.mule.krb5.internal.ccache.FileCCacheConstants
Fields
private static boolean DEBUG
private Vector<Credentials> credentialsList
private static String dir
public PrincipalName primaryPrincipal
public Realm primaryRealm
public Tag tag
public int version
[Expand]
Inherited Fields
From class sun.security.mule.krb5.internal.ccache.CredentialsCache
Public Methods
synchronized static FileCredentialsCache acquireInstance(PrincipalName principal, String cache)
static FileCredentialsCache acquireInstance()
static String checkValidation(String name)
Credentials getCreds(PrincipalName sname, Realm srealm)
Gets a credentials for a specified service.
Credentials getCreds(LoginOptions options, PrincipalName sname, Realm srealm)
synchronized Credentials[] getCredsList()
Returns the list of credentials entries in the cache file.
static String getDefaultCacheName()
Credentials getDefaultCreds()
synchronized PrincipalName getPrimaryPrincipal()
synchronized void save()
Saves the credentials cache file to the disk.
synchronized void update(Credentials c)
Updates the credentials list.
[Expand]
Inherited Methods
From class sun.security.mule.krb5.internal.ccache.CredentialsCache
From class java.lang.Object

Fields

private static boolean DEBUG

private Vector<Credentials> credentialsList

private static String dir

public PrincipalName primaryPrincipal

public Realm primaryRealm

public Tag tag

public int version

Public Methods

public static synchronized FileCredentialsCache acquireInstance (PrincipalName principal, String cache)

Parameters
principal
cache

public static FileCredentialsCache acquireInstance ()

public static String checkValidation (String name)

Parameters
name

public Credentials getCreds (PrincipalName sname, Realm srealm)

Gets a credentials for a specified service.

Parameters
sname Service principal name.
srealm The realm that the service belongs to.

public Credentials getCreds (LoginOptions options, PrincipalName sname, Realm srealm)

Parameters
options
sname
srealm

public synchronized Credentials[] getCredsList ()

Returns the list of credentials entries in the cache file.

public static String getDefaultCacheName ()

public Credentials getDefaultCreds ()

public synchronized PrincipalName getPrimaryPrincipal ()

public synchronized void save ()

Saves the credentials cache file to the disk.

Throws
Asn1Exception
IOException

public synchronized 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.

Parameters
c The credentials.