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

com.github.scribejava.apis.tutby.TutByBearerSignature Maven / Gradle / Ivy

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

import com.github.scribejava.core.model.OAuthConstants;
import com.github.scribejava.core.model.OAuthRequest;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignature;

public class TutByBearerSignature implements BearerSignature {

    protected TutByBearerSignature() {
    }

    private static class InstanceHolder {

        private static final TutByBearerSignature INSTANCE = new TutByBearerSignature();
    }

    public static TutByBearerSignature instance() {
        return InstanceHolder.INSTANCE;
    }

    @Override
    public void signRequest(String accessToken, OAuthRequest request) {
        request.addQuerystringParameter(OAuthConstants.TOKEN, accessToken);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy