org.codehaus.httpcache4j.auth.bearer.BearerTokenChallenge Maven / Gradle / Ivy
package org.codehaus.httpcache4j.auth.bearer;
import com.google.common.base.Preconditions;
import org.codehaus.httpcache4j.Challenge;
/**
* @author Erlend Hamnaberg
*/
public final class BearerTokenChallenge implements Challenge {
private BearerToken token;
public BearerTokenChallenge(BearerToken token) {
this.token = Preconditions.checkNotNull(token, "Token may not be null");
}
public String getIdentifier() {
return token.getToken();
}
public BearerToken getToken() {
return token;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy