Class TokenPropagationConfigurationProperties
java.lang.Object
io.micronaut.security.token.propagation.AbstractOutgoingRequestProcessorMatcher
io.micronaut.security.token.propagation.TokenPropagationConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,io.micronaut.http.util.OutgoingRequestProcessorMatcher
,TokenPropagationConfiguration
@Requires(classes=io.micronaut.http.util.OutgoingRequestProcessorMatcher.class)
@ConfigurationProperties("micronaut.security.token.propagation")
public class TokenPropagationConfigurationProperties
extends AbstractOutgoingRequestProcessorMatcher
implements TokenPropagationConfiguration
Token Propagation Configuration Properties.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
The default path.static final String
Fields inherited from class io.micronaut.security.token.propagation.AbstractOutgoingRequestProcessorMatcher
serviceIdPattern, serviceIdRegex, uriPattern, uriRegex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
boolean
void
setEnabled
(boolean enabled) EnablesTokenPropagationHttpClientFilter
.void
ConfiguresTokenPropagationHttpClientFilter
path.Methods inherited from class io.micronaut.security.token.propagation.AbstractOutgoingRequestProcessorMatcher
getServiceIdPattern, getServiceIdRegex, getUriPattern, getUriRegex, setServiceIdRegex, setUriRegex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.util.OutgoingRequestProcessorMatcher
getServiceIdPattern, getUriPattern
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
DEFAULT_PATH
The default path.- See Also:
-
-
Constructor Details
-
TokenPropagationConfigurationProperties
public TokenPropagationConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) EnablesTokenPropagationHttpClientFilter
. Default value false- Parameters:
enabled
- enabled flag
-
setPath
ConfiguresTokenPropagationHttpClientFilter
path. Default value "/**"- Parameters:
path
- Path to be matched by Token Propagation Filter.
-
getPath
- Specified by:
getPath
in interfaceTokenPropagationConfiguration
- Returns:
- Path to be matched by Token Propagation Filter.
-