
com.clarifai.api.auth.CredentialCache Maven / Gradle / Ivy
package com.clarifai.api.auth;
/** Interface for a cache of @{link Credentials}. */
public interface CredentialCache {
/** Stores a {@link Credential} for a given appId. */
public void putCredential(String appId, Credential credential);
/** Returns the {@link Credential} for the given appId or null if it is not cached. */
public Credential getCredential(String appId);
/** Returns the {@link Credential} for a given appId from the cache. */
public void removeCredential(String appId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy