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
public abstract class SecurityPermissionCheckEvent extends SecurityDefiniteOutcomeEvent
A security event relating to a permission check.- Author:
- Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description SecurityPermissionCheckEvent(SecurityIdentity securityIdentity, Permission permission, boolean successful)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
Raccept(SecurityEventVisitor<P,R> visitor, P param)
Accept the given visitor, calling the method which is most applicable to this event type.Permission
getPermission()
Obtain thePermission
this event related to.-
Methods inherited from class org.wildfly.security.auth.server.event.SecurityDefiniteOutcomeEvent
isSuccessful
-
Methods inherited from class org.wildfly.security.auth.server.event.SecurityEvent
getInstant, getSecurityIdentity
-
-
-
-
Constructor Detail
-
SecurityPermissionCheckEvent
public SecurityPermissionCheckEvent(SecurityIdentity securityIdentity, Permission permission, boolean successful)
Construct a new instance.- Parameters:
securityIdentity
- theSecurityIdentity
the permission check was against.successful
- was the permission check successful.permission
- thePermission
that was checked.
-
-
Method Detail
-
getPermission
public Permission getPermission()
Obtain thePermission
this event related to.- Returns:
- the
Permission
this event related to.
-
accept
public <P,R> R accept(SecurityEventVisitor<P,R> visitor, P param)
Description copied from class:SecurityEvent
Accept the given visitor, calling the method which is most applicable to this event type.- Overrides:
accept
in classSecurityEvent
- Type Parameters:
P
- the visitor parameter typeR
- the visitor return type- Parameters:
visitor
- the visitorparam
- the parameter to pass to the visitorhandleXxx
method- Returns:
- the value returned from the visitor
handleXxx
method
-
-