Class HttpHeadersFactory
java.lang.Object
com.sap.cloud.security.xsuaa.http.HttpHeadersFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpHeadersAdds theAuthorization: Bearer <token>header to the set of headers.static HttpHeadersCreates the set of HTTP headers with client-credentials basic authentication header.
-
Method Details
-
createWithAuthorizationBearerHeader
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
Creates the set of HTTP headers with client-credentials basic authentication header.- Returns:
- the HTTP headers.
-