Package com.linecorp.armeria.common.auth
Class OAuth1aToken
java.lang.Object
com.linecorp.armeria.common.auth.AuthToken
com.linecorp.armeria.common.auth.OAuth1aToken
The bearer token of OAuth 1.0a authentication.
-
Method Summary
Modifier and TypeMethodDescriptionReturns additional (or user-defined) parameters.Returns the string that is sent as the value of theHttpHeaderNames.AUTHORIZATION
header.static OAuth1aTokenBuilder
builder()
Deprecated.Returns the value of the "oauth_consumer_key" property.boolean
int
hashCode()
nonce()
Returns the value of "oauth_nonce" property.realm()
Returns the value of the "realm" property.Returns the value of "oauth_signature" property.Returns the value of "oauth_signature_method" property.Returns the value of "oauth_timestamp" property.token()
Returns the value of the "oauth_token" property.toString()
version()
Returns the value of "version" property.Methods inherited from class com.linecorp.armeria.common.auth.AuthToken
builderForOAuth1a, ofBasic, ofOAuth2
-
Method Details
-
builder
Deprecated.useAuthToken.builderForOAuth1a()
instead.Returns a newOAuth1aTokenBuilder
. -
realm
Returns the value of the "realm" property. -
consumerKey
Returns the value of the "oauth_consumer_key" property. -
token
Returns the value of the "oauth_token" property. -
signatureMethod
Returns the value of "oauth_signature_method" property. -
signature
Returns the value of "oauth_signature" property. -
timestamp
Returns the value of "oauth_timestamp" property. -
nonce
Returns the value of "oauth_nonce" property. -
version
Returns the value of "version" property. If not set, returns the default value of"1.0"
. -
additionals
Returns additional (or user-defined) parameters. -
asHeaderValue
Returns the string that is sent as the value of theHttpHeaderNames.AUTHORIZATION
header.- Specified by:
asHeaderValue
in classAuthToken
-
equals
-
hashCode
public int hashCode() -
toString
-
AuthToken.builderForOAuth1a()
instead.