public class HttpHeadersFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static HttpHeaders |
createWithAuthorizationBearerHeader(String token)
Adds the
Authorization: Bearer <token> header to the set of headers. |
static HttpHeaders |
createWithoutAuthorizationHeader()
Creates the set of HTTP headers with client-credentials basic authentication
header.
|
public static HttpHeaders createWithAuthorizationBearerHeader(String token)
Authorization: Bearer <token> header to the set of headers.token - - the token which should be part of the header.public static HttpHeaders createWithoutAuthorizationHeader()
Copyright © 2020. All rights reserved.