Class RoleOrIpBasedAuthorizationManager

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

    public class RoleOrIpBasedAuthorizationManager
    extends RoleBasedAuthorizationManager
    The role or ip based authorization manager.
    Author:
    Christian Bremer
    • Constructor Detail

      • RoleOrIpBasedAuthorizationManager

        public RoleOrIpBasedAuthorizationManager​(Collection<String> roles,
                                                 Collection<String> ipAddresses)
        Instantiates a new role or ip based authorization manager.
        Parameters:
        roles - the roles
        ipAddresses - the ip addresses
      • RoleOrIpBasedAuthorizationManager

        public RoleOrIpBasedAuthorizationManager​(Collection<String> roles,
                                                 Collection<String> ipAddresses,
                                                 boolean withAuthenticatedFallback)
        Instantiates a new role or ip based authorization manager.
        Parameters:
        roles - the roles
        ipAddresses - the ip addresses
        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>
        Overrides:
        check in class RoleBasedAuthorizationManager