Package com.linecorp.armeria.common.auth
Class OAuth2Token
java.lang.Object
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
Creates a newOAuth2Token
from the givenaccessToken
.toString()
-
Method Details
-
of
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. -
equals
-
hashCode
public int hashCode() -
toString
-