Interface ReactiveAuthorizationManager<T>
- Type Parameters:
T
- the type of object that the authorization check is being done on.
- All Known Implementing Classes:
AuthenticatedReactiveAuthorizationManager
,AuthorityReactiveAuthorizationManager
,DelegatingReactiveAuthorizationManager
,IpAddressReactiveAuthorizationManager
,ObservationReactiveAuthorizationManager
,PayloadExchangeMatcherReactiveAuthorizationManager
,PostAuthorizeReactiveAuthorizationManager
,PreAuthorizeReactiveAuthorizationManager
public interface ReactiveAuthorizationManager<T>
A reactive authorization manager which can determine if an
Authentication
has
access to a specific object.- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<AuthorizationResult>
authorize
(reactor.core.publisher.Mono<Authentication> authentication, T object) Determines if access is granted for a specific authentication and object.reactor.core.publisher.Mono<AuthorizationDecision>
check
(reactor.core.publisher.Mono<Authentication> authentication, T object) Deprecated.default reactor.core.publisher.Mono<Void>
verify
(reactor.core.publisher.Mono<Authentication> authentication, T object) Determines if access should be granted for a specific authentication and object
-
Method Details
-
check
@Deprecated reactor.core.publisher.Mono<AuthorizationDecision> check(reactor.core.publisher.Mono<Authentication> authentication, T object) Deprecated.please useauthorize(Mono, Object)
insteadDetermines if access is granted for a specific authentication and object.- Parameters:
authentication
- the Authentication to checkobject
- the object to check- Returns:
- an decision or empty Mono if no decision could be made.
-
verify
default reactor.core.publisher.Mono<Void> verify(reactor.core.publisher.Mono<Authentication> authentication, T object) Determines if access should be granted for a specific authentication and object- Parameters:
authentication
- the Authentication to checkobject
- the object to check- Returns:
- an empty Mono if authorization is granted or a Mono error if access is denied
-
authorize
default reactor.core.publisher.Mono<AuthorizationResult> authorize(reactor.core.publisher.Mono<Authentication> authentication, T object) Determines if access is granted for a specific authentication and object.- Parameters:
authentication
- the Authentication to authorizeobject
- the object to check- Returns:
- an decision or empty Mono if no decision could be made.
- Since:
- 6.4
-
authorize(Mono, Object)
instead