public class CredentialsCache extends Object
Constructor and Description |
---|
CredentialsCache() |
Modifier and Type | Method and Description |
---|---|
void |
addCredentials(Credentials cred) |
List<Credentials> |
getCredsList()
Returns the credentials entries
|
PrincipalName |
getPrimaryPrincipalName()
Returns the primary principal
|
List<Tag> |
getTags() |
int |
getVersion() |
static CredentialsCache |
load(File cacheFile) |
static CredentialsCache |
load(InputStream is) |
static void |
main(String[] args) |
void |
setPrimaryPrincipalName(PrincipalName principal)
Set the primary principal
|
void |
setTags(List<Tag> tags) |
void |
setVersion(int version) |
static void |
store(File fileName,
CredentialsCache credCache) |
static void |
store(OutputStream os,
CredentialsCache credCache) |
public static CredentialsCache load(File cacheFile) throws IOException
IOException
public static CredentialsCache load(InputStream is) throws IOException
IOException
public static void store(File fileName, CredentialsCache credCache) throws IOException
IOException
public static void store(OutputStream os, CredentialsCache credCache) throws IOException
IOException
public void addCredentials(Credentials cred)
public int getVersion()
public void setVersion(int version)
public PrincipalName getPrimaryPrincipalName()
public void setPrimaryPrincipalName(PrincipalName principal)
public List<Credentials> getCredsList()
public static void main(String[] args) throws IOException
IOException
Copyright © 2017. All rights reserved.