Class RealmIdentitySuccessfulAuthorizationEvent
- 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.RealmIdentitySuccessfulAuthorizationEvent
-
public final class RealmIdentitySuccessfulAuthorizationEvent extends RealmIdentityAuthorizationEvent
An event indicating that one identity attempted to authorize as another identity.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description RealmIdentitySuccessfulAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
Raccept(RealmEventVisitor<P,R> visitor, P param)
Accept the given visitor, calling the method which is most applicable to this event type.boolean
isAuthorized()
Determine if this authorization was successful.-
Methods inherited from class org.wildfly.security.auth.server.event.RealmIdentityAuthorizationEvent
getNewPrincipal
-
Methods inherited from class org.wildfly.security.auth.server.event.RealmAuthorizationEvent
getAuthorizationIdentity, getPrincipal
-
-
-
-
Constructor Detail
-
RealmIdentitySuccessfulAuthorizationEvent
public RealmIdentitySuccessfulAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal)
Construct a new instance.- Parameters:
authorizationIdentity
- the identity of the authorizing partyprincipal
- the authorization principalnewPrincipal
- the authorized-as principal
-
-
Method Detail
-
accept
public <P,R> R accept(RealmEventVisitor<P,R> visitor, P param)
Description copied from class:RealmEvent
Accept the given visitor, calling the method which is most applicable to this event type.- Overrides:
accept
in classRealmIdentityAuthorizationEvent
- 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
-
isAuthorized
public boolean isAuthorized()
Description copied from class:RealmAuthorizationEvent
Determine if this authorization was successful.- Specified by:
isAuthorized
in classRealmAuthorizationEvent
- Returns:
true
if the authentication was successful,false
if it failed
-
-