Interface AuthorizationManager<T>
- Type Parameters:
- T- the type of object that the authorization check is being done on.
- All Known Implementing Classes:
- AuthenticatedAuthorizationManager,- AuthoritiesAuthorizationManager,- AuthorityAuthorizationManager,- IpAddressAuthorizationManager,- Jsr250AuthorizationManager,- MessageMatcherDelegatingAuthorizationManager,- MethodExpressionAuthorizationManager,- ObservationAuthorizationManager,- PostAuthorizeAuthorizationManager,- PreAuthorizeAuthorizationManager,- RequestMatcherDelegatingAuthorizationManager,- SecuredAuthorizationManager,- SingleResultAuthorizationManager,- WebExpressionAuthorizationManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An Authorization manager which can determine if an 
Authentication has access to
 a specific object.- 
Method SummaryModifier and TypeMethodDescriptiondefault AuthorizationResultauthorize(Supplier<Authentication> authentication, T object) Determines if access is granted for a specific authentication and object.check(Supplier<Authentication> authentication, T object) Deprecated.default voidverify(Supplier<Authentication> authentication, T object) Determines if access should be granted for a specific authentication and object.
- 
Method Details- 
verifyDetermines if access should be granted for a specific authentication and object.- Parameters:
- authentication- the- Supplierof the- Authenticationto check
- object- the- AuthorizationManagerobject to check
- Throws:
- AccessDeniedException- if access is not granted
 
- 
check@Nullable @Deprecated AuthorizationDecision check(Supplier<Authentication> authentication, T object) Deprecated.please useauthorize(Supplier, Object)insteadDetermines if access is granted for a specific authentication and object.- Parameters:
- authentication- the- Supplierof the- Authenticationto check
- object- the- AuthorizationManagerobject to check
- Returns:
- an AuthorizationDecisionor null if no decision could be made
 
- 
authorizeDetermines if access is granted for a specific authentication and object.- Parameters:
- authentication- the- Supplierof the- Authenticationto authorize
- object- the- AuthorizationManagerobject to authorize
- Returns:
- an AuthorizationResult
- Since:
- 6.4
 
 
- 
authorize(Supplier, Object)instead