Class ConsumerTokenConfig
java.lang.Object
org.sdase.commons.server.consumer.ConsumerTokenConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setExcludePatterns
(List<String> excludePatterns) void
setOptional
(boolean optional)
-
Constructor Details
-
ConsumerTokenConfig
public ConsumerTokenConfig()
-
-
Method Details
-
isOptional
public boolean isOptional()- Returns:
- if the consumer token is optional. Provided consumer tokens will still be registered in the request context but the request will not fail with 401 if no token is provided.
-
setOptional
public void setOptional(boolean optional) - Parameters:
optional
- if the consumer token is optional. Provided consumer tokens will still be registered in the request context but the request will not fail with 401 if no token is provided.
-
getExcludePatterns
- Returns:
- returns a list of regex pattern for paths that are excluded from the filter
-
setExcludePatterns
- Parameters:
excludePatterns
- list with pattern that are excluded from the configuration filter
-