Class SecurityServerScopeProvider

All Implemented Interfaces:
ScopeProvider

@Singleton @ConstrainedTo(SERVER) final class SecurityServerScopeProvider extends ServerScopeProvider
  • Field Details

    • securityContext

      @Context private javax.ws.rs.core.SecurityContext securityContext
  • Constructor Details

    • SecurityServerScopeProvider

      @Inject public SecurityServerScopeProvider(javax.ws.rs.core.Configuration config, InjectionManager injectionManager)
  • Method Details

    • getFilteringScopes

      public Set<String> getFilteringScopes(Annotation[] entityAnnotations, boolean defaultIfNotFound)
      Description copied from interface: ScopeProvider
      Get entity-filtering scopes to be used to process an entity.
      Specified by:
      getFilteringScopes in interface ScopeProvider
      Overrides:
      getFilteringScopes in class ServerScopeProvider
      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.