@Contract(threading=IMMUTABLE) public class BearerToken extends Object implements Credentials, Serializable
Credentials usually representing a set of claims, often encrypted
 or signed. The JWT (JSON Web Token) is among most widely used tokens used at the time
 of writing.| Constructor and Description | 
|---|
| BearerToken(String token) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| char[] | getPassword()Deprecated. 
 Do not use. | 
| String | getToken() | 
| Principal | getUserPrincipal() | 
| int | hashCode() | 
public BearerToken(String token)
public Principal getUserPrincipal()
getUserPrincipal in interface Credentials@Deprecated public char[] getPassword()
getPassword in interface Credentialspublic String getToken()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.