Top Description Inners Fields Constructors Methods
sun.security.krb5.internal.ccache

public abstract Class CredentialsCache

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.krb5.internal.ccache.FileCredentialsCache, sun.security.krb5.internal.ccache.MemoryCredentialsCache
Imports
sun.security.krb5.*, sun.security.krb5.internal.*, java.util.List, java.io.IOException

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
pack-priv static String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
public static String
public static CredentialsCache
create(PrincipalName principal, String name)

public static CredentialsCache
create(PrincipalName principal)

public abstract List<CredentialsCache.ConfigEntry>
public CredentialsCache.ConfigEntry
public abstract Credentials
public abstract Credentials
public abstract Credentials[]
public abstract Credentials
public abstract Credentials
public static CredentialsCache
public static CredentialsCache
public static CredentialsCache
getInstance(PrincipalName principal, String cache)

public static CredentialsCache
getInstance()

Gets the default credentials cache.

public abstract PrincipalName
public abstract void
save()

public abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheNameback to summary
pack-priv static String cacheName

Constructor Detail

CredentialsCacheback to summary
public CredentialsCache()

Method Detail

addConfigEntryback to summary
public abstract void addConfigEntry(CredentialsCache.ConfigEntry e)
cacheNameback to summary
public static String cacheName()
createback to summary
public static CredentialsCache create(PrincipalName principal, String name)
createback to summary
public static CredentialsCache create(PrincipalName principal)
getConfigEntriesback to summary
public abstract List<CredentialsCache.ConfigEntry> getConfigEntries()
getConfigEntryback to summary
public CredentialsCache.ConfigEntry getConfigEntry(String name)
getCredsback to summary
public abstract Credentials getCreds(PrincipalName sname)
getCredsback to summary
public abstract Credentials getCreds(LoginOptions options, PrincipalName sname)
getCredsListback to summary
public abstract Credentials[] getCredsList()
getDefaultCredsback to summary
public abstract Credentials getDefaultCreds()
getInitialCredsback to summary
public abstract Credentials getInitialCreds()
getInstanceback to summary
public static CredentialsCache getInstance(PrincipalName principal)
getInstanceback to summary
public static CredentialsCache getInstance(String cache)
getInstanceback to summary
public static CredentialsCache getInstance(PrincipalName principal, String cache)
getInstanceback to summary
public static CredentialsCache getInstance()

Gets the default credentials cache.

getPrimaryPrincipalback to summary
public abstract PrincipalName getPrimaryPrincipal()
saveback to summary
public abstract void save() throws IOException, KrbException
updateback to summary
public abstract void update(Credentials c)
sun.security.krb5.internal.ccache back to summary

public Class CredentialsCache.ConfigEntry

extends Object
Class Inheritance
  • java.lang.Object
  • sun.security.krb5.internal.ccache.CredentialsCache.ConfigEntry

Field Summary

Modifier and TypeField and Description
private final byte[]
private final String
private final PrincipalName

Constructor Summary

AccessConstructor and Description
public
ConfigEntry(String name, PrincipalName princ, byte[] data)

Method Summary

Modifier and TypeMethod and Description
public byte[]
public String
public PrincipalName
public PrincipalName
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

databack to summary
private final byte[] data
nameback to summary
private final String name
princback to summary
private final PrincipalName princ

Constructor Detail

ConfigEntryback to summary
public ConfigEntry(String name, PrincipalName princ, byte[] data)

Method Detail

getDataback to summary
public byte[] getData()
getNameback to summary
public String getName()
getPrincback to summary
public PrincipalName getPrinc()
getSNameback to summary
public PrincipalName getSName()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override