T - the type of object being authorizedpublic class AuthorityReactiveAuthorizationManager<T> extends java.lang.Object implements ReactiveAuthorizationManager<T>
ReactiveAuthorizationManager that determines if the current user is
authorized by evaluating if the Authentication contains a specified authority.| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<AuthorizationDecision> |
check(reactor.core.publisher.Mono<Authentication> authentication,
T object)
Determines if access is granted for a specific authentication and object.
|
static <T> AuthorityReactiveAuthorizationManager<T> |
hasAuthority(java.lang.String authority)
Creates an instance of
AuthorityReactiveAuthorizationManager with the
provided authority. |
static <T> AuthorityReactiveAuthorizationManager<T> |
hasRole(java.lang.String role)
Creates an instance of
AuthorityReactiveAuthorizationManager with the
provided authority. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifypublic reactor.core.publisher.Mono<AuthorizationDecision> check(reactor.core.publisher.Mono<Authentication> authentication, T object)
ReactiveAuthorizationManagercheck in interface ReactiveAuthorizationManager<T>authentication - the Authentication to checkobject - the object to checkpublic static <T> AuthorityReactiveAuthorizationManager<T> hasAuthority(java.lang.String authority)
AuthorityReactiveAuthorizationManager with the
provided authority.T - the type of object being authorizedauthority - the authority to check forpublic static <T> AuthorityReactiveAuthorizationManager<T> hasRole(java.lang.String role)
AuthorityReactiveAuthorizationManager with the
provided authority.T - the type of object being authorizedrole - the authority to check for prefixed with "ROLE_"