Class RealmAuthorizationEvent
java.lang.Object
org.wildfly.security.auth.server.event.RealmEvent
org.wildfly.security.auth.server.event.RealmAuthorizationEvent
- Direct Known Subclasses:
RealmIdentityAuthorizationEvent
A realm authorization event. The realm identity may be destroyed at some point after the event is handled.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRealmAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescription<P,R> R accept(RealmEventVisitor<P, R> visitor, P param) Accept the given visitor, calling the method which is most applicable to this event type.Get the authorization identity of this event.Get the authorization principal.abstract booleanDetermine if this authorization was successful.
-
Constructor Details
-
RealmAuthorizationEvent
Construct a new instance.- Parameters:
authorizationIdentity- the authorization identityprincipal- the authorization principal
-
-
Method Details
-
getAuthorizationIdentity
Get the authorization identity of this event.- Returns:
- the authorization identity of this event
-
getPrincipal
Get the authorization principal. This principal is the result of the application of the security domain's principal rewriting policies and may not correspond to the name used to locate the identity in the realm.- Returns:
- the authorization principal
-
accept
Description copied from class:RealmEventAccept the given visitor, calling the method which is most applicable to this event type.- Overrides:
acceptin classRealmEvent- 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
-
isAuthorized
public abstract boolean isAuthorized()Determine if this authorization was successful.- Returns:
trueif the authentication was successful,falseif it failed
-