Class RoleOrIpBasedAuthorizationManager
- java.lang.Object
-
- org.bremersee.security.authentication.RoleBasedAuthorizationManager
-
- org.bremersee.security.authentication.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 Summary
Constructors Constructor Description RoleOrIpBasedAuthorizationManager(Collection<String> roles, Collection<String> ipAddresses)
Instantiates a new role or ip based authorization manager.RoleOrIpBasedAuthorizationManager(Collection<String> roles, Collection<String> ipAddresses, boolean withAuthenticatedFallback)
Instantiates a new role or 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
-
RoleOrIpBasedAuthorizationManager
public RoleOrIpBasedAuthorizationManager(Collection<String> roles, Collection<String> ipAddresses)
Instantiates a new role or ip based authorization manager.- Parameters:
roles
- the rolesipAddresses
- 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 rolesipAddresses
- 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>
- Overrides:
check
in classRoleBasedAuthorizationManager
-
-