Class ConsumerTokenConfig
- java.lang.Object
-
- org.sdase.commons.server.consumer.ConsumerTokenConfig
-
public class ConsumerTokenConfig extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConsumerTokenConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getExcludePatterns()
boolean
isOptional()
void
setExcludePatterns(java.util.List<java.lang.String> excludePatterns)
void
setOptional(boolean optional)
-
-
-
Method Detail
-
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
public java.util.List<java.lang.String> getExcludePatterns()
- Returns:
- returns a list of regex pattern for paths that are excluded from the filter
-
setExcludePatterns
public void setExcludePatterns(java.util.List<java.lang.String> excludePatterns)
- Parameters:
excludePatterns
- list with pattern that are excluded from the configuration filter
-
-