Class SecurityServerScopeProvider
- java.lang.Object
-
- org.glassfish.jersey.message.filtering.CommonScopeProvider
-
- org.glassfish.jersey.message.filtering.ServerScopeProvider
-
- org.glassfish.jersey.message.filtering.SecurityServerScopeProvider
-
- All Implemented Interfaces:
ScopeProvider
@Singleton @ConstrainedTo(SERVER) final class SecurityServerScopeProvider extends ServerScopeProvider
-
-
Field Summary
Fields Modifier and Type Field Description private javax.ws.rs.core.SecurityContextsecurityContext-
Fields inherited from interface org.glassfish.jersey.message.filtering.spi.ScopeProvider
DEFAULT_SCOPE
-
-
Constructor Summary
Constructors Constructor Description SecurityServerScopeProvider(javax.ws.rs.core.Configuration config, InjectionManager injectionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getFilteringScopes(java.lang.annotation.Annotation[] entityAnnotations, boolean defaultIfNotFound)Get entity-filtering scopes to be used to process an entity.-
Methods inherited from class org.glassfish.jersey.message.filtering.ServerScopeProvider
getFilteringScopes
-
Methods inherited from class org.glassfish.jersey.message.filtering.CommonScopeProvider
getFilteringScopes, mergeFilteringScopes, returnFilteringScopes
-
-
-
-
Constructor Detail
-
SecurityServerScopeProvider
@Inject public SecurityServerScopeProvider(javax.ws.rs.core.Configuration config, InjectionManager injectionManager)
-
-
Method Detail
-
getFilteringScopes
public java.util.Set<java.lang.String> getFilteringScopes(java.lang.annotation.Annotation[] entityAnnotations, boolean defaultIfNotFound)Description copied from interface:ScopeProviderGet entity-filtering scopes to be used to process an entity.- Specified by:
getFilteringScopesin interfaceScopeProvider- Overrides:
getFilteringScopesin classServerScopeProvider- Parameters:
entityAnnotations- entity annotations provided with entity when creating request/response.defaultIfNotFound- flag determining whether the default entity-filtering scope should be returned if no other scope can be obtained.- Returns:
- non-null entity-filtering scopes.
-
-