Annotation Interface RequiresScope
Declares that a method on a JAX-RS resource may only be executed if the
incoming request is authorized for the scopes given in the value of the
annotation. When used on JAX-RS resource class, all methods without the
annotation inherit the resource class annotation.
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
allNeeded
boolean allNeeded- Returns:
trueif all specified scopes must be authorized;falseotherwise
- Default:
true
-
value
String[] valueReturns the list of scopes requiring authorization to execute this method.- Returns:
- the scopes
-