All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.scribejava.apis.microsoftazureactivedirectory.BaseMicrosoftAzureActiveDirectoryBearerSignature Maven / Gradle / Ivy

There is a newer version: 8.3.3
Show newest version
package com.github.scribejava.apis.microsoftazureactivedirectory;

import com.github.scribejava.core.model.OAuthRequest;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignatureAuthorizationRequestHeaderField;

public abstract class BaseMicrosoftAzureActiveDirectoryBearerSignature
        extends BearerSignatureAuthorizationRequestHeaderField {

    private final String acceptedFormat;

    protected BaseMicrosoftAzureActiveDirectoryBearerSignature(String acceptedFormat) {
        this.acceptedFormat = acceptedFormat;
    }

    @Override
    public void signRequest(String accessToken, OAuthRequest request) {
        super.signRequest(accessToken, request);
        request.addHeader("Accept", acceptedFormat);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy