public final class RealmIdentitySuccessfulAuthorizationEvent extends RealmIdentityAuthorizationEvent
Constructor and Description |
---|
RealmIdentitySuccessfulAuthorizationEvent(AuthorizationIdentity authorizationIdentity,
Principal principal,
Principal newPrincipal)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
boolean |
isAuthorized()
Determine if this authorization was successful.
|
getNewPrincipal
getAuthorizationIdentity, getPrincipal
public RealmIdentitySuccessfulAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal)
authorizationIdentity
- the identity of the authorizing partyprincipal
- the authorization principalnewPrincipal
- the authorized-as principalpublic <P,R> R accept(RealmEventVisitor<P,R> visitor, P param)
RealmEvent
accept
in class RealmIdentityAuthorizationEvent
P
- the visitor parameter typeR
- the visitor return typevisitor
- the visitorparam
- the parameter to pass to the visitor handleXxx
methodhandleXxx
methodpublic boolean isAuthorized()
RealmAuthorizationEvent
isAuthorized
in class RealmAuthorizationEvent
true
if the authentication was successful, false
if it failedCopyright © 2020 JBoss by Red Hat. All rights reserved.