Class HttpBearerAuth
- java.lang.Object
-
- de.gematik.ti.epa.vzd.client.invoker.auth.HttpBearerAuth
-
- All Implemented Interfaces:
Authentication
public class HttpBearerAuth extends java.lang.Object implements Authentication
-
-
Constructor Summary
Constructors Constructor Description HttpBearerAuth(java.lang.String scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToParams(java.util.List<Pair> queryParams, java.util.Map<java.lang.String,java.lang.String> headerParams, java.util.Map<java.lang.String,java.lang.String> cookieParams)Apply authentication settings to header and query params.java.lang.StringgetBearerToken()Gets the token, which together with the scheme, will be sent as the value of the Authorization header.voidsetBearerToken(java.lang.String bearerToken)Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
-
-
-
Method Detail
-
getBearerToken
public java.lang.String getBearerToken()
Gets the token, which together with the scheme, will be sent as the value of the Authorization header.- Returns:
- The bearer token
-
setBearerToken
public void setBearerToken(java.lang.String bearerToken)
Sets the token, which together with the scheme, will be sent as the value of the Authorization header.- Parameters:
bearerToken- The bearer token to send in the Authorization header
-
applyToParams
public void applyToParams(java.util.List<Pair> queryParams, java.util.Map<java.lang.String,java.lang.String> headerParams, java.util.Map<java.lang.String,java.lang.String> cookieParams)
Description copied from interface:AuthenticationApply authentication settings to header and query params.- Specified by:
applyToParamsin interfaceAuthentication- Parameters:
queryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameters
-
-