com.cloudbees.api.CachedTokenValidator Maven / Gradle / Ivy
The newest version!
package com.cloudbees.api;
import com.cloudbees.api.oauth.OauthClientException;
import com.cloudbees.api.oauth.OauthToken;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import java.util.concurrent.ExecutionException;
/**
* Cached {@link TokenValidator}
*
* @author Kohsuke Kawaguchi
*/
class CachedTokenValidator extends TokenValidator {
private final Cache cache;
/**
* @param cb
* Partially configured cache.
*/
CachedTokenValidator(CacheBuilder