Class IpBasedAuthorizationManager

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

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

      • IpBasedAuthorizationManager

        public IpBasedAuthorizationManager​(Collection<String> ipAddresses)
        Instantiates a new ip based authorization manager.
        Parameters:
        ipAddresses - the ip addresses
      • IpBasedAuthorizationManager

        public IpBasedAuthorizationManager​(Collection<String> ipAddresses,
                                           boolean withAuthenticatedFallback)
        Instantiates a new ip based authorization manager.
        Parameters:
        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>