Package com.linecorp.armeria.common.auth
Class OAuth2Token
java.lang.Object
com.linecorp.armeria.common.auth.OAuth2Token
public final class OAuth2Token extends Object
The bearer token of OAuth 2.0 authentication.
-
Method Summary
Modifier and Type Method Description String
accessToken()
Returns the access token.boolean
equals(Object o)
int
hashCode()
static OAuth2Token
of(String accessToken)
Creates a newOAuth2Token
from the givenaccessToken
.String
toHeaderValue()
Returns the string that is sent as the value of theHttpHeaderNames.AUTHORIZATION
header.String
toString()
-
Method Details
-
of
Creates a newOAuth2Token
from the givenaccessToken
. -
accessToken
Returns the access token. -
toHeaderValue
Returns the string that is sent as the value of theHttpHeaderNames.AUTHORIZATION
header. -
equals
-
hashCode
public int hashCode() -
toString
-