com.ibm.security.krb5.internal.ccache
Class StreamCredentialsCache
- java.lang.Object
com.ibm.security.krb5.internal.ccache.CredentialsCache
com.ibm.security.krb5.internal.ccache.StreamCredentialsCache
- public class StreamCredentialsCache
- extends CredentialsCache
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 |
---|---|
|
destroy()
DOCUMENT ME!
|
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.
|
|
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 |
Constructor Detail
StreamCredentialsCache
- public StreamCredentialsCache(PrincipalName principal,
- java.io.InputStream inputCache)
- throws java.io.IOException
- KrbException
StreamCredentialsCache
- public StreamCredentialsCache(PrincipalName principal,
- java.io.OutputStream outputCache)
StreamCredentialsCache
- public StreamCredentialsCache(PrincipalName principal,
- java.io.InputStream inputCache,
- java.io.OutputStream outputCache)
- throws java.io.IOException
- KrbException
Method Detail
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
- KrbException
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()
DOCUMENT ME!
Specified by:
destroy
in class CredentialsCache