Package com.linecorp.armeria.common.auth
Class AuthToken
java.lang.Object
com.linecorp.armeria.common.auth.AuthToken
- Direct Known Subclasses:
BasicToken
,OAuth1aToken
,OAuth2Token
The authorization token in
HttpHeaderNames.AUTHORIZATION
header.-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Returns the string that is sent as the value of theHttpHeaderNames.AUTHORIZATION
header.static OAuth1aTokenBuilder
Create a newOAuth1aTokenBuilder
.static BasicToken
Create a bearer token of HTTP basic access authentication.static OAuth2Token
Create a bearer token of OAuth 2.0 authentication.
-
Method Details
-
ofBasic
Create a bearer token of HTTP basic access authentication. -
builderForOAuth1a
Create a newOAuth1aTokenBuilder
. -
ofOAuth2
Create a bearer token of OAuth 2.0 authentication. -
asHeaderValue
Returns the string that is sent as the value of theHttpHeaderNames.AUTHORIZATION
header.
-