Class RoleBasedAuthorizationManager

  • All Implemented Interfaces:
    org.springframework.security.authorization.ReactiveAuthorizationManager<org.springframework.security.web.server.authorization.AuthorizationContext>
    Direct Known Subclasses:
    RoleOrIpBasedAuthorizationManager

    public class RoleBasedAuthorizationManager
    extends Object
    implements org.springframework.security.authorization.ReactiveAuthorizationManager<org.springframework.security.web.server.authorization.AuthorizationContext>
    The role based authorization manager.
    Author:
    Christian Bremer
    • Constructor Detail

      • RoleBasedAuthorizationManager

        public RoleBasedAuthorizationManager​(Collection<String> roles)
        Instantiates a new role based authorization manager.
        Parameters:
        roles - the roles
      • RoleBasedAuthorizationManager

        public RoleBasedAuthorizationManager​(Collection<String> roles,
                                             boolean withAuthenticatedFallback)
        Instantiates a new role based authorization manager.
        Parameters:
        roles - the roles
        withAuthenticatedFallback - the with authenticated fallback flag
    • Method Detail

      • check

        public reactor.core.publisher.Mono<org.springframework.security.authorization.AuthorizationDecision> check​(reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authentication,
                                                                                                                   org.springframework.security.web.server.authorization.AuthorizationContext authorizationContext)
        Specified by:
        check in interface org.springframework.security.authorization.ReactiveAuthorizationManager<org.springframework.security.web.server.authorization.AuthorizationContext>