congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Token
Code IndexAdd Tabnine to your IDE (free)

How to use
Token
in
com.atlassian.oauth

Best Java code snippets using com.atlassian.oauth.Token (Showing top 5 results out of 315)

origin: com.atlassian.oauth/atlassian-oauth-bridge

  public static void setCommonTokenData(OAuthAccessor accessor, Token token) {
    if (token.isRequestToken()) {
      accessor.requestToken = token.getToken();
    } else {
      accessor.accessToken = token.getToken();
    }
    accessor.tokenSecret = token.getTokenSecret();
    for (Map.Entry<String, String> property : token.getProperties().entrySet()) {
      accessor.setProperty(property.getKey(), property.getValue());
    }
  }
}
origin: com.atlassian.oauth/atlassian-oauth-shared

/**
 * Creates a new {@code TokenProperties} instance using the attributes of the {@code Token} as property values.
 */
public TokenProperties(Token token) {
  putToken(token.getToken());
  putTokenSecret(token.getTokenSecret());
  putTokenType(token.isAccessToken() ? TokenType.ACCESS : TokenType.REQUEST);
  putConsumerKey(token.getConsumer().getKey());
  if (!token.getProperties().isEmpty()) {
    putProperties(token.getProperties());
  }
}
origin: com.atlassian.applinks/applinks-func-test-shared

public RestAccessToken(@Nonnull Token token) {
  checkNotNull(token, "token");
  put(TOKEN, token.getToken());
  put(TOKEN_SECRET, token.getTokenSecret());
}
origin: com.atlassian.oauth/atlassian-oauth-service-provider-plugin

builder.add(new Parameter(OAUTH_TOKEN, token.getToken()));
builder.add(new Parameter(OAUTH_TOKEN_SECRET, token.getTokenSecret()));
if (V_1_0_A.equals(version)) {
  builder.add(new Parameter(OAUTH_CALLBACK_CONFIRMED, "true"));
origin: com.marvelution.jira.plugins/jenkins-jira-plugin

response.setContentType("text/plain");
ImmutableList.Builder<OAuth.Parameter> builder = ImmutableList.builder();
builder.add(new OAuth.Parameter(OAUTH_TOKEN, token.getToken()), new OAuth.Parameter(OAUTH_TOKEN_SECRET,
    token.getTokenSecret()));
if (callback != null) {
  builder.add(new OAuth.Parameter(OAUTH_CALLBACK_CONFIRMED, Boolean.TRUE.toString()));
com.atlassian.oauthToken

Javadoc

Base type for OAuth tokens. This type should never be used directly. Instead, use the more specific com.atlassian.oauth.serviceprovider.ServiceProviderToken or com.atlassian.oauth.serviceprovider.ConsumerToken depending on whether you are providing OAuth services or are consuming them.

Most used methods

  • getToken
    Returns the token value used to identify this token in OAuth messages.
  • getTokenSecret
    Returns the secret used by the Consumer to establish ownership of a given Token.
  • getProperties
    Returns an immutable map of the tokens properties.
  • getConsumer
    Returns the Consumer that owns this token.
  • isAccessToken
    Returns true if this is an access token, false otherwise.
  • isRequestToken
    Returns true if this is a request token, false otherwise.

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now