public interface HasDynamicAuthorization
HttpServlets which need to
dynamically determine what AuthorizationConstraint is required for a
request.| Modifier and Type | Field and Description |
|---|---|
static AuthorizationConstraint |
USE_DEFAULT_CONSTRAINTS
Constant denoting that the runtime's default logic for discovering what
AuthorizationConstraint to apply to a request should be used. |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationConstraint |
getConstraint(HttpServletRequest request)
Determine the
AuthorizationConstraint that applies to a resource. |
static final AuthorizationConstraint USE_DEFAULT_CONSTRAINTS
AuthorizationConstraint to apply to a request should be used.AuthorizationConstraint getConstraint(HttpServletRequest request) throws ServletException, IOException
AuthorizationConstraint that applies to a resource.request - an HttpServletRequest object that contains the request the
client has made of the servletAuthorizationConstraint instance if a constraint applies to
the request. null if no constraint applies to the
request. USE_DEFAULT_CONSTRAINTS if
this method cannot determine what constraint applies to the
request, and therefore the runtime's default
AuthorizationConstraint discovery logic will be applied to
the request.IOException - if an input or output error is detected when the servlet
determines the AuthorizationConstraintServletException - if the request for the dynamic privilege could not be handledOracle REST Data Services Plugin API version: 3.0.0.65.09.35 Copyright © 2015 Oracle Corp. All Rights Reserved.