com.github.scribejava.apis.TutByApi Maven / Gradle / Ivy
package com.github.scribejava.apis;
import com.github.scribejava.apis.tutby.TutByBearerSignature;
import com.github.scribejava.core.builder.api.DefaultApi20;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignature;
public class TutByApi extends DefaultApi20 {
protected TutByApi() {
}
private static class InstanceHolder {
private static final TutByApi INSTANCE = new TutByApi();
}
public static TutByApi instance() {
return InstanceHolder.INSTANCE;
}
@Override
public String getAccessTokenEndpoint() {
return "http://profile.tut.by/getToken";
}
@Override
protected String getAuthorizationBaseUrl() {
return "http://profile.tut.by/auth";
}
@Override
public BearerSignature getBearerSignature() {
return TutByBearerSignature.instance();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy