public interface SecurityRule
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATABASE_PATH |
| Modifier and Type | Method and Description |
|---|---|
String |
forUriPath() |
boolean |
isAuthorized(javax.servlet.http.HttpServletRequest request) |
String |
wwwAuthenticateHeader() |
static final String DEFAULT_DATABASE_PATH
boolean isAuthorized(javax.servlet.http.HttpServletRequest request)
request - The HTTP request currently under consideration.true if the rule passes, false if the
rule fails and the request is to be rejected with a "401 Unauthorized".String forUriPath()
/db/data will apply this rule to everything below
the path /db/data It is possible to use * as a
wildcard character in return values, e.g.
/myExtension* will extend security coverage to
everything under the /myExtension path. 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.
String wwwAuthenticateHeader()
401 response code if the rule denies a request.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.