com.github.scribejava.core.revoke.OAuth2RevokeTokenResponseConverter Maven / Gradle / Ivy
package com.github.scribejava.core.revoke;
import com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor;
import com.github.scribejava.core.model.Response;
import java.io.IOException;
public class OAuth2RevokeTokenResponseConverter {
public Void convert(Response response) throws IOException {
if (response.getCode() != 200) {
OAuth2AccessTokenJsonExtractor.instance().generateError(response.getBody());
}
return null;
}
}