Class RealmIdentityFailedAuthorizationEvent
java.lang.Object
org.wildfly.security.auth.server.event.RealmEvent
org.wildfly.security.auth.server.event.RealmAuthorizationEvent
org.wildfly.security.auth.server.event.RealmIdentityAuthorizationEvent
org.wildfly.security.auth.server.event.RealmIdentityFailedAuthorizationEvent
An event indicating that one identity attempted to authorize as another identity.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionRealmIdentityFailedAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal) 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.booleanDetermine if this authorization was successful.Methods inherited from class RealmIdentityAuthorizationEvent
getNewPrincipalMethods inherited from class RealmAuthorizationEvent
getAuthorizationIdentity, getPrincipal
-
Constructor Details
-
RealmIdentityFailedAuthorizationEvent
public RealmIdentityFailedAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal) Construct a new instance.- Parameters:
authorizationIdentity- the identity of the authorizing partyprincipal- the authorization principalnewPrincipal- the authorize-as principal
-
-
Method Details
-
accept
Description copied from class:RealmEventAccept the given visitor, calling the method which is most applicable to this event type.- Overrides:
acceptin classRealmIdentityAuthorizationEvent- 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 boolean isAuthorized()Description copied from class:RealmAuthorizationEventDetermine if this authorization was successful.- Specified by:
isAuthorizedin classRealmAuthorizationEvent- Returns:
trueif the authentication was successful,falseif it failed
-