@ConfigurationProperties(value="header-propagation") public static class OauthClientConfigurationProperties.ClientCredentialsConfigurationProperties.HeaderTokenPropagatorConfigurationProperties extends java.lang.Object implements ClientCredentialsHeaderTokenPropagatorConfiguration
DEFAULT_ENABLED, DEFAULT_HEADER_NAME, DEFAULT_PREFIX
Constructor and Description |
---|
HeaderTokenPropagatorConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHeaderName() |
java.lang.String |
getPrefix() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
|
void |
setHeaderName(java.lang.String headerName)
Http Header to be used to propagate the token.
|
void |
setPrefix(java.lang.String prefix)
Value prefix for Http Header.
|
public HeaderTokenPropagatorConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
ClientCredentialsHeaderTokenPropagatorConfiguration
. Default value ().enabled
- enabled flagpublic void setPrefix(java.lang.String prefix)
prefix
- preffix before the header valuepublic java.lang.String getPrefix()
getPrefix
in interface ClientCredentialsHeaderTokenPropagatorConfiguration
public void setHeaderName(java.lang.String headerName)
headerName
- HTTP header namepublic java.lang.String getHeaderName()
getHeaderName
in interface ClientCredentialsHeaderTokenPropagatorConfiguration