Class RoleBasedAuthorizationManager
- java.lang.Object
-
- org.bremersee.security.authentication.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 Summary
Constructors Constructor Description RoleBasedAuthorizationManager(Collection<String> roles)
Instantiates a new role based authorization manager.RoleBasedAuthorizationManager(Collection<String> roles, boolean withAuthenticatedFallback)
Instantiates a new role 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
-
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 roleswithAuthenticatedFallback
- 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>
-
-