public class Authorizations extends Object
Authorization.| Modifier and Type | Method and Description |
|---|---|
static Authorization |
withBasicCredentials(String username,
String secret) |
static Authorization |
withBasicToken(String token) |
static Authorization |
withBearerToken(String token) |
public static Authorization withBearerToken(String token)
token - the tokenAuthorization with a Bearer tokenpublic static Authorization withBasicCredentials(String username, String secret)
username - the usernamesecret - the secretAuthorization with a Basic credentialspublic static Authorization withBasicToken(String token)
token - the tokenAuthorization with a base64-encoded username:password stringCopyright © 2019. All rights reserved.