Class HttpHeadersFactory
- java.lang.Object
-
- com.sap.cloud.security.xsuaa.http.HttpHeadersFactory
-
public class HttpHeadersFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpHeaderscreateWithAuthorizationBearerHeader(String token)Adds theAuthorization: Bearer <token>header to the set of headers.static HttpHeaderscreateWithoutAuthorizationHeader()Creates the set of HTTP headers with client-credentials basic authentication header.
-
-
-
Method Detail
-
createWithAuthorizationBearerHeader
public static HttpHeaders createWithAuthorizationBearerHeader(String token)
Adds theAuthorization: Bearer <token>header to the set of headers.- Parameters:
token- - the token which should be part of the header.- Returns:
- the builder instance.
-
createWithoutAuthorizationHeader
public static HttpHeaders createWithoutAuthorizationHeader()
Creates the set of HTTP headers with client-credentials basic authentication header.- Returns:
- the HTTP headers.
-
-