public class InMemoryCredentialCache extends Object implements CredentialCache
CredentialCache
implementation.Modifier and Type | Method and Description |
---|---|
Credential |
getCredential(String appId)
Returns the
Credential for the given appId or null if it is not cached. |
static InMemoryCredentialCache |
getInstance()
Returns the singleton instance.
|
void |
putCredential(String appId,
Credential credential)
Stores a
Credential for a given appId. |
void |
removeCredential(String appId)
Returns the
Credential for a given appId from the cache. |
public static InMemoryCredentialCache getInstance()
public void putCredential(String appId, Credential credential)
CredentialCache
Credential
for a given appId.putCredential
in interface CredentialCache
public Credential getCredential(String appId)
CredentialCache
Credential
for the given appId or null if it is not cached.getCredential
in interface CredentialCache
public void removeCredential(String appId)
CredentialCache
Credential
for a given appId from the cache.removeCredential
in interface CredentialCache
Copyright © 2015. All Rights Reserved.