com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api Maven / Gradle / Ivy
package com.github.scribejava.apis;
import com.github.scribejava.apis.microsoftazureactivedirectory.BaseMicrosoftAzureActiveDirectoryApi;
import com.github.scribejava.apis.microsoftazureactivedirectory.MicrosoftAzureActiveDirectory20BearerSignature;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignature;
/**
* Microsoft Azure Active Directory Api v 2.0
*
* @see
* Understand the OAuth 2.0 authorization code flow in Azure AD | Microsoft Docs
* @see
* Microsoft Graph REST API v1.0 reference
* @see https://portal.azure.com
*/
public class MicrosoftAzureActiveDirectory20Api extends BaseMicrosoftAzureActiveDirectoryApi {
protected MicrosoftAzureActiveDirectory20Api() {
this(COMMON_TENANT);
}
protected MicrosoftAzureActiveDirectory20Api(String tenant) {
super(tenant);
}
private static class InstanceHolder {
private static final MicrosoftAzureActiveDirectory20Api INSTANCE = new MicrosoftAzureActiveDirectory20Api();
}
public static MicrosoftAzureActiveDirectory20Api instance() {
return InstanceHolder.INSTANCE;
}
public static MicrosoftAzureActiveDirectory20Api custom(String tenant) {
return new MicrosoftAzureActiveDirectory20Api(tenant);
}
@Override
public BearerSignature getBearerSignature() {
return MicrosoftAzureActiveDirectory20BearerSignature.instance();
}
@Override
protected String getEndpointVersionPath() {
return "/v2.0";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy