Interface AuthorizationHeaderAuthentication
- All Superinterfaces:
HttpDestinationAuthentication
- All Known Subinterfaces:
ExtensionAuthorizationHeaderAuthentication
The Authorization header will be set to the content of headerValue. The authentication scheme (such as Basic or Bearer) should be included in the headerValue.
For example, the headerValue for Basic Authentication should be set to Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==.
Example to create an instance using the builder pattern
AuthorizationHeaderAuthentication authorizationHeaderAuthentication = AuthorizationHeaderAuthentication.builder()
.headerValue("{headerValue}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AuthorizationHeaderAuthentication -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AuthorizationHeaderAuthenticationbuilder(AuthorizationHeaderAuthentication template) create builder for AuthorizationHeaderAuthentication instancecopyDeep()deepCopy(AuthorizationHeaderAuthentication template) factory method to create a deep copy of AuthorizationHeaderAuthentication@NotNull StringPartially hidden on retrieval for security reasons.of()factory methodof(AuthorizationHeaderAuthentication template) factory method to create a shallow copy AuthorizationHeaderAuthenticationvoidsetHeaderValue(String headerValue) Partially hidden on retrieval for security reasons.static com.fasterxml.jackson.core.type.TypeReference<AuthorizationHeaderAuthentication>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.extension.HttpDestinationAuthentication
getType, withHttpDestinationAuthentication
-
Field Details
-
AUTHORIZATION_HEADER
discriminator value for AuthorizationHeaderAuthentication- See Also:
-
-
Method Details
-
getHeaderValue
Partially hidden on retrieval for security reasons.
- Returns:
- headerValue
-
setHeaderValue
Partially hidden on retrieval for security reasons.
- Parameters:
headerValue- value to be set
-
of
factory method- Returns:
- instance of AuthorizationHeaderAuthentication
-
of
factory method to create a shallow copy AuthorizationHeaderAuthentication- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AuthorizationHeaderAuthentication copyDeep()- Specified by:
copyDeepin interfaceHttpDestinationAuthentication
-
deepCopy
@Nullable static AuthorizationHeaderAuthentication deepCopy(@Nullable AuthorizationHeaderAuthentication template) factory method to create a deep copy of AuthorizationHeaderAuthentication- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AuthorizationHeaderAuthentication- Returns:
- builder
-
builder
create builder for AuthorizationHeaderAuthentication instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAuthorizationHeaderAuthentication
default <T> T withAuthorizationHeaderAuthentication(Function<AuthorizationHeaderAuthentication, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<AuthorizationHeaderAuthentication> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-