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:
Serializable,org.springframework.core.ResolvableTypeProvider
public class AuthorizationGrantedEvent<T>
extends AuthorizationEvent
implements org.springframework.core.ResolvableTypeProvider
An
ApplicationEvent which indicates successful authorization.- Since:
- 5.7
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationGrantedEvent(Supplier<Authentication> authentication, T object, AuthorizationDecision decision) Deprecated.AuthorizationGrantedEvent(Supplier<Authentication> authentication, T object, AuthorizationResult result) -
Method Summary
Modifier and TypeMethodDescriptionGet the object to which access was requestedorg.springframework.core.ResolvableTypeGetResolvableTypeof this class.Methods inherited from class org.springframework.security.authorization.event.AuthorizationEvent
getAuthentication, getAuthorizationDecision, getAuthorizationResultMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AuthorizationGrantedEvent
@Deprecated public AuthorizationGrantedEvent(Supplier<Authentication> authentication, T object, AuthorizationDecision decision) Deprecated.please use a constructor that takes anAuthorizationResult -
AuthorizationGrantedEvent
public AuthorizationGrantedEvent(Supplier<Authentication> authentication, T object, AuthorizationResult result) - Since:
- 6.4
-
-
Method Details
-
getObject
Get the object to which access was requested- Overrides:
getObjectin classAuthorizationEvent- Returns:
- the object to which access was requested
- Since:
- 5.8
-
getResolvableType
public org.springframework.core.ResolvableType getResolvableType()GetResolvableTypeof this class.- Specified by:
getResolvableTypein interfaceorg.springframework.core.ResolvableTypeProvider- Returns:
ResolvableType- Since:
- 6.5
-
AuthorizationResult