Class ConsumerTokenConfig


  • public class ConsumerTokenConfig
    extends java.lang.Object
    • Constructor Detail

      • ConsumerTokenConfig

        public ConsumerTokenConfig()
    • 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