@Singleton @Priority(value=4100) @ConstrainedTo(value=SERVER) final class SecurityServerScopeResolver extends java.lang.Object implements ScopeResolver
scope provider
resolving entity-filtering scopes from security annotations
with respect to user's roles defined in SecurityContext
.Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.core.SecurityContext |
securityContext |
Constructor and Description |
---|
SecurityServerScopeResolver() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
resolve(java.lang.annotation.Annotation[] annotations)
Resolve entity-filtering scopes for given annotations.
|
public java.util.Set<java.lang.String> resolve(java.lang.annotation.Annotation[] annotations)
ScopeResolver
resolve
in interface ScopeResolver
annotations
- list of arbitrary annotations.