Class SecurityServerScopeResolver

  • All Implemented Interfaces:
    ScopeResolver

    @Singleton
    @Priority(4100)
    @ConstrainedTo(SERVER)
    final class SecurityServerScopeResolver
    extends java.lang.Object
    implements ScopeResolver
    Server-side scope provider resolving entity-filtering scopes from security annotations with respect to user's roles defined in SecurityContext.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.ws.rs.core.SecurityContext securityContext  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> resolve​(java.lang.annotation.Annotation[] annotations)
      Resolve entity-filtering scopes for given annotations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • securityContext

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

      • SecurityServerScopeResolver

        SecurityServerScopeResolver()
    • Method Detail

      • resolve

        public java.util.Set<java.lang.String> resolve​(java.lang.annotation.Annotation[] annotations)
        Description copied from interface: ScopeResolver
        Resolve entity-filtering scopes for given annotations.
        Specified by:
        resolve in interface ScopeResolver
        Parameters:
        annotations - list of arbitrary annotations.
        Returns:
        non-null set of entity-filtering scopes.