Class SecurityPermissionCheckEvent
java.lang.Object
org.wildfly.security.auth.server.event.SecurityEvent
org.wildfly.security.auth.server.event.SecurityDefiniteOutcomeEvent
org.wildfly.security.auth.server.event.SecurityPermissionCheckEvent
- Direct Known Subclasses:
SecurityPermissionCheckFailedEvent,SecurityPermissionCheckSuccessfulEvent
A security event relating to a permission check.
- Author:
- Darran Lofthouse
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityPermissionCheckEvent(SecurityIdentity securityIdentity, Permission permission, boolean successful) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescription<P,R> R accept(SecurityEventVisitor<P, R> visitor, P param) Accept the given visitor, calling the method which is most applicable to this event type.Obtain thePermissionthis event related to.Methods inherited from class org.wildfly.security.auth.server.event.SecurityDefiniteOutcomeEvent
isSuccessfulMethods inherited from class org.wildfly.security.auth.server.event.SecurityEvent
getInstant, getSecurityIdentity
-
Constructor Details
-
SecurityPermissionCheckEvent
public SecurityPermissionCheckEvent(SecurityIdentity securityIdentity, Permission permission, boolean successful) Construct a new instance.- Parameters:
securityIdentity- theSecurityIdentitythe permission check was against.successful- was the permission check successful.permission- thePermissionthat was checked.
-
-
Method Details
-
getPermission
Obtain thePermissionthis event related to.- Returns:
- the
Permissionthis event related to.
-
accept
Description copied from class:SecurityEventAccept the given visitor, calling the method which is most applicable to this event type.- Overrides:
acceptin classSecurityEvent- Type Parameters:
P- the visitor parameter typeR- the visitor return type- Parameters:
visitor- the visitorparam- the parameter to pass to the visitorhandleXxxmethod- Returns:
- the value returned from the visitor
handleXxxmethod
-