congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BoxLayout (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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