public class BearerAuthenticationToken extends Object implements AuthenticationToken
AuthenticationToken representing a Bearer authententication token.
This AuthenticationToken returns always null from getPrincipal() and returns the token from
getCredentials().
AuthenticationToken.AuthenticationTokenResolver<R extends Message>CredentialsContainer.CredentialsMatcher| Constructor and Description |
|---|
BearerAuthenticationToken(String token)
Construct a new BearerAuthenticationToken
|
| Modifier and Type | Method and Description |
|---|---|
static BearerAuthenticationToken |
create(String token)
Create a new
BearerAuthenticationToken with given token. |
Object |
getCredentials()
Returns the credentials submitted during the authentication process that verifies the submitted
AuthenticationToken.getPrincipal() account identity. |
Object |
getPrincipal()
Get the principal to which this authentication token refers, i.e.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccountCredentials, bearer, httpBasicResolver, httpBearerResolverdefaultMatcherpublic BearerAuthenticationToken(String token)
token - Bearer token valuepublic Object getPrincipal()
AuthenticationTokengetPrincipal in interface AuthenticationTokenpublic Object getCredentials()
AuthenticationTokenAuthenticationToken.getPrincipal() account identity.getCredentials in interface AuthenticationTokengetCredentials in interface CredentialsContainerpublic static BearerAuthenticationToken create(String token)
BearerAuthenticationToken with given token.token - Bearer tokenBearerAuthenticationToken with given credentialsCopyright © 2019 The Holon Platform. All rights reserved.