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