Class OAuth1aToken

java.lang.Object
com.linecorp.armeria.common.auth.AuthToken
com.linecorp.armeria.common.auth.OAuth1aToken

public final class OAuth1aToken extends AuthToken
The bearer token of OAuth 1.0a authentication.
  • Method Details

    • builder

      @Deprecated public static OAuth1aTokenBuilder builder()
      Deprecated.
      Returns a new OAuth1aTokenBuilder.
    • realm

      @Nullable public @Nullable String realm()
      Returns the value of the "realm" property.
    • consumerKey

      public String consumerKey()
      Returns the value of the "oauth_consumer_key" property.
    • token

      public String token()
      Returns the value of the "oauth_token" property.
    • signatureMethod

      public String signatureMethod()
      Returns the value of "oauth_signature_method" property.
    • signature

      public String signature()
      Returns the value of "oauth_signature" property.
    • timestamp

      public String timestamp()
      Returns the value of "oauth_timestamp" property.
    • nonce

      public String nonce()
      Returns the value of "oauth_nonce" property.
    • version

      public String version()
      Returns the value of "version" property. If not set, returns the default value of "1.0".
    • additionals

      public Map<String,String> additionals()
      Returns additional (or user-defined) parameters.
    • asHeaderValue

      public String asHeaderValue()
      Returns the string that is sent as the value of the HttpHeaderNames.AUTHORIZATION header.
      Specified by:
      asHeaderValue in class AuthToken
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object