Class ConsumerTokenConfig

java.lang.Object
org.sdase.commons.server.consumer.ConsumerTokenConfig

public class ConsumerTokenConfig extends Object
  • 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

      public List<String> getExcludePatterns()
      Returns:
      returns a list of regex pattern for paths that are excluded from the filter
    • setExcludePatterns

      public void setExcludePatterns(List<String> excludePatterns)
      Parameters:
      excludePatterns - list with pattern that are excluded from the configuration filter