![JAR search and dependency download from the Maven repository](/logo.png)
org.scribe.builder.api.UbuntuOneApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aem-sdk-api Show documentation
Show all versions of aem-sdk-api Show documentation
The Adobe Experience Manager SDK
package org.scribe.builder.api;
import org.scribe.model.Token;
import org.scribe.services.*;
/**
* @author Julio Gutierrez
*
* Sep 6, 2012
*/
public class UbuntuOneApi extends DefaultApi10a
{
private static final String AUTHORIZATION_URL = "https://one.ubuntu.com/oauth/authorize/?oauth_token=%s";
@Override
public String getAccessTokenEndpoint()
{
return "https://one.ubuntu.com/oauth/access/";
}
@Override
public String getAuthorizationUrl(Token requestToken)
{
return String.format(AUTHORIZATION_URL, requestToken.getToken());
}
@Override
public String getRequestTokenEndpoint()
{
return "https://one.ubuntu.com/oauth/request/";
}
@Override
public SignatureService getSignatureService()
{
return new PlaintextSignatureService();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy