Class IpAddressReactiveAuthorizationManager
java.lang.Object
org.springframework.security.web.server.authorization.IpAddressReactiveAuthorizationManager
- All Implemented Interfaces:
ReactiveAuthorizationManager<AuthorizationContext>
public final class IpAddressReactiveAuthorizationManager
extends Object
implements ReactiveAuthorizationManager<AuthorizationContext>
A
ReactiveAuthorizationManager, that determines if the current request contains
the specified address or range of addresses- Since:
- 5.7
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<AuthorizationDecision>check(reactor.core.publisher.Mono<Authentication> authentication, AuthorizationContext context) Determines if access is granted for a specific authentication and object.hasIpAddress(String ipAddress) Creates an instance ofIpAddressReactiveAuthorizationManagerwith the provided IP address.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.authorization.ReactiveAuthorizationManager
authorize, verify
-
Method Details
-
check
public reactor.core.publisher.Mono<AuthorizationDecision> check(reactor.core.publisher.Mono<Authentication> authentication, AuthorizationContext context) Description copied from interface:ReactiveAuthorizationManagerDetermines if access is granted for a specific authentication and object.- Specified by:
checkin interfaceReactiveAuthorizationManager<AuthorizationContext>- Parameters:
authentication- the Authentication to checkcontext- the object to check- Returns:
- an decision or empty Mono if no decision could be made.
-
hasIpAddress
Creates an instance ofIpAddressReactiveAuthorizationManagerwith the provided IP address.- Parameters:
ipAddress- the address or range of addresses from which the request must- Returns:
- the new instance
-