Class AuthorizationGrantedEvent<T>
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.security.authorization.event.AuthorizationEvent
-
- org.springframework.security.authorization.event.AuthorizationGrantedEvent<T>
-
- All Implemented Interfaces:
java.io.Serializable
public class AuthorizationGrantedEvent<T> extends AuthorizationEvent
AnApplicationEvent
which indicates successful authorization.- Since:
- 5.7
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationGrantedEvent(java.util.function.Supplier<Authentication> authentication, T object, AuthorizationDecision decision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getObject()
Get the object to which access was requested-
Methods inherited from class org.springframework.security.authorization.event.AuthorizationEvent
getAuthentication, getAuthorizationDecision
-
-
-
-
Constructor Detail
-
AuthorizationGrantedEvent
public AuthorizationGrantedEvent(java.util.function.Supplier<Authentication> authentication, T object, AuthorizationDecision decision)
-
-
Method Detail
-
getObject
public T getObject()
Get the object to which access was requested- Overrides:
getObject
in classAuthorizationEvent
- Returns:
- the object to which access was requested
- Since:
- 5.8
-
-