Class BearerCredentials
java.lang.Object
com.sap.cloud.sdk.cloudplatform.security.BearerCredentials
- All Implemented Interfaces:
Credentials
Simple credential implementation based on a single token.
-
Constructor Summary
ConstructorDescriptionBearerCredentials
(String token) Creates a new instance based on the given token. -
Method Summary
-
Constructor Details
-
BearerCredentials
Creates a new instance based on the given token.If the given
token
starts with the prefix"Bearer "
(ignoring casing), the prefix will be removed from the token. ThegetHttpHeaderValue()
, on the other hand, will always contain the prefix.- Parameters:
token
- The token to use for authentication.
-
-
Method Details