Package com.linecorp.armeria.common.auth
Class OAuth2Token
java.lang.Object
com.linecorp.armeria.common.auth.AuthToken
com.linecorp.armeria.common.auth.OAuth2Token
The bearer token of OAuth 2.0 authentication.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the access token.Returns the string that is sent as the value of theHttpHeaderNames.AUTHORIZATION
header.boolean
int
hashCode()
static OAuth2Token
Deprecated.toString()
Methods inherited from class com.linecorp.armeria.common.auth.AuthToken
builderForOAuth1a, ofBasic, ofOAuth2
-
Method Details
-
of
Deprecated.useAuthToken.ofOAuth2(String)
instead.Creates a newOAuth2Token
from the givenaccessToken
. -
accessToken
Returns the access token. -
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.ofOAuth2(String)
instead.