Class BsonRequestWhitelistPredicate

java.lang.Object
org.restheart.security.predicates.BsonRequestWhitelistPredicate
All Implemented Interfaces:
io.undertow.predicate.Predicate

public class BsonRequestWhitelistPredicate extends Object implements io.undertow.predicate.Predicate
a predicate that resolve to true if the request content is bson and all keys in the request content are in the specified whitelist
  • Constructor Details

    • BsonRequestWhitelistPredicate

      public BsonRequestWhitelistPredicate(String[] whitelist)
  • Method Details

    • resolve

      public boolean resolve(io.undertow.server.HttpServerExchange exchange)
      Specified by:
      resolve in interface io.undertow.predicate.Predicate