com.ibm.security.krb5.internal.ccache

Class StreamCredentialsCache

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.ccache.CredentialsCache
  3. extended bycom.ibm.security.krb5.internal.ccache.StreamCredentialsCache

  1. public class StreamCredentialsCache
  2. extends CredentialsCache
DOCUMENT ME!
Version:
1.1, 5/7/07
Author:
Thomas Owusu

Constructor Summary

Constructor and Description
StreamCredentialsCache(PrincipalName principal,java.io.InputStream inputCache)
StreamCredentialsCache(PrincipalName principal,java.io.InputStream inputCache,java.io.OutputStream outputCache)
StreamCredentialsCache(PrincipalName principal,java.io.OutputStream outputCache)

Method Summary

Modifier and Type Method and Description
  1. void
destroy()
DOCUMENT ME!
  1. Credentials
getCreds(LoginOptions options,PrincipalName sname,Realm srealm)
DOCUMENT ME!
  1. Credentials
getCreds(PrincipalName sname,Realm srealm)
Gets a credentials for a specified service.
  1. Credentials[]
getCredsList()
Returns the list of credentials entries in the cache file.
  1. Credentials
getDefaultCreds()
DOCUMENT ME!
  1. PrincipalName
getPrimaryPrincipal()
DOCUMENT ME!
  1. void
save()
Saves the credentials cache file to the disk.
  1. void
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

Constructor Detail

StreamCredentialsCache

  1. public StreamCredentialsCache(PrincipalName principal,
  2. java.io.InputStream inputCache)
  3. throws java.io.IOException
  4. KrbException
Throws:
java.io.IOException

StreamCredentialsCache

  1. public StreamCredentialsCache(PrincipalName principal,
  2. java.io.OutputStream outputCache)

StreamCredentialsCache

  1. public StreamCredentialsCache(PrincipalName principal,
  2. java.io.InputStream inputCache,
  3. java.io.OutputStream outputCache)
  4. throws java.io.IOException
  5. KrbException
Throws:
java.io.IOException

Method Detail

update

  1. 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:
Parameters:
c - the credentials.

getPrimaryPrincipal

  1. public PrincipalName getPrimaryPrincipal( )
DOCUMENT ME!
Specified by:
Returns:
DOCUMENT ME!

save

  1. public void save()
  2. throws java.io.IOException
  3. KrbException
Saves the credentials cache file to the disk.
Specified by:
Throws:
java.io.IOException - DOCUMENT ME!
KrbException - DOCUMENT ME!

getCredsList

  1. public Credentials[] getCredsList( )
Returns the list of credentials entries in the cache file.
Specified by:
Returns:
DOCUMENT ME!

getCreds

  1. public Credentials getCreds(LoginOptions options,
  2. PrincipalName sname,
  3. Realm srealm)
DOCUMENT ME!
Specified by:
Parameters:
options - DOCUMENT ME!
sname - DOCUMENT ME!
srealm - DOCUMENT ME!
Returns:
DOCUMENT ME!

getCreds

  1. public Credentials getCreds(PrincipalName sname,
  2. Realm srealm)
Gets a credentials for a specified service.
Specified by:
Parameters:
sname - service principal name.
srealm - the realm that the service belongs to.
Returns:
DOCUMENT ME!

getDefaultCreds

  1. public Credentials getDefaultCreds( )
DOCUMENT ME!
Specified by:
Returns:
DOCUMENT ME!

destroy

  1. public void destroy()
DOCUMENT ME!
Specified by: