sun.security.mule.krb5.internal.ccache
Class CredentialsCache

java.lang.Object
  extended by sun.security.mule.krb5.internal.ccache.CredentialsCache
Direct Known Subclasses:
FileCredentialsCache, MemoryCredentialsCache

public abstract class CredentialsCache
extends Object

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

Author:
Yanni Zhang

Constructor Summary
CredentialsCache()
           
 
Method Summary
static String cacheName()
           
static CredentialsCache create(PrincipalName principal)
           
static CredentialsCache create(PrincipalName principal, String name)
           
abstract  Credentials getCreds(LoginOptions options, PrincipalName sname, Realm srealm)
           
abstract  Credentials getCreds(PrincipalName sname, Realm srealm)
           
abstract  Credentials[] getCredsList()
           
abstract  Credentials getDefaultCreds()
           
static CredentialsCache getInstance()
          Gets the default credentials cache.
static CredentialsCache getInstance(PrincipalName principal)
           
static CredentialsCache getInstance(PrincipalName principal, String cache)
           
static CredentialsCache getInstance(String cache)
           
abstract  PrincipalName getPrimaryPrincipal()
           
abstract  void save()
           
abstract  void update(Credentials c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialsCache

public CredentialsCache()
Method Detail

getInstance

public static CredentialsCache getInstance(PrincipalName principal)

getInstance

public static CredentialsCache getInstance(String cache)

getInstance

public static CredentialsCache getInstance(PrincipalName principal,
                                           String cache)

getInstance

public static CredentialsCache getInstance()
Gets the default credentials cache.


create

public static CredentialsCache create(PrincipalName principal,
                                      String name)

create

public static CredentialsCache create(PrincipalName principal)

cacheName

public static String cacheName()

getPrimaryPrincipal

public abstract PrincipalName getPrimaryPrincipal()

update

public abstract void update(Credentials c)

save

public abstract void save()
                   throws IOException,
                          KrbException
Throws:
IOException
KrbException

getCredsList

public abstract Credentials[] getCredsList()

getDefaultCreds

public abstract Credentials getDefaultCreds()

getCreds

public abstract Credentials getCreds(PrincipalName sname,
                                     Realm srealm)

getCreds

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


Copyright © 2013. All Rights Reserved.