com.github.scribejava.apis.NaverApi Maven / Gradle / Ivy
package com.github.scribejava.apis;
import com.github.scribejava.core.builder.api.DefaultApi20;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignature;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignatureURIQueryParameter;
public class NaverApi extends DefaultApi20 {
protected NaverApi() {
}
private static class InstanceHolder {
private static final NaverApi INSTANCE = new NaverApi();
private InstanceHolder() {
}
}
public static NaverApi instance() {
return NaverApi.InstanceHolder.INSTANCE;
}
@Override
public String getAccessTokenEndpoint() {
return "https://nid.naver.com/oauth2.0/token?grant_type=authorization_code";
}
@Override
protected String getAuthorizationBaseUrl() {
return "https://nid.naver.com/oauth2.0/authorize";
}
@Override
public BearerSignature getBearerSignature() {
return BearerSignatureURIQueryParameter.instance();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy