Class IpBasedAuthorizationManager
- java.lang.Object
-
- org.bremersee.security.authentication.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 Summary
Constructors Constructor Description IpBasedAuthorizationManager(Collection<String> ipAddresses)
Instantiates a new ip based authorization manager.IpBasedAuthorizationManager(Collection<String> ipAddresses, boolean withAuthenticatedFallback)
Instantiates a new ip based authorization manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 addresseswithAuthenticatedFallback
- 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 interfaceorg.springframework.security.authorization.ReactiveAuthorizationManager<org.springframework.security.web.server.authorization.AuthorizationContext>
-
-