public interface SecurityRule
boolean isAuthorized(javax.servlet.http.HttpServletRequest request)
request- The HTTP request currently under consideration.
trueif the rule passes,
falseif the rule fails and the request is to be rejected.
/db/datawill apply this rule to everything below the path
/db/dataIt is possible to use * as a wildcard character in return values, e.g.
/myExtension*will extend security coverage to everything under the
/myExtensionpath. Similarly more complex path behavior can be specified with more wildcards, e.g.:
/myExtension*myApplication*specialResources. Note that the wildcard represents any character (including the '/' character), meaning
/myExtension/*is not the same as
/myExtension*and implementers should take care to ensure their implementations are tested accordingly. Final note: the only wildcard supported is '*' and there is no support for regular expression syntax.
401response code if the rule denies a request.
Copyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.