public abstract class RealmAuthorizationEvent extends RealmEvent
Modifier | Constructor and Description |
---|---|
protected |
RealmAuthorizationEvent(AuthorizationIdentity authorizationIdentity,
Principal principal)
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.
|
AuthorizationIdentity |
getAuthorizationIdentity()
Get the authorization identity of this event.
|
Principal |
getPrincipal()
Get the authorization principal.
|
abstract boolean |
isAuthorized()
Determine if this authorization was successful.
|
protected RealmAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal)
authorizationIdentity
- the authorization identityprincipal
- the authorization principalpublic AuthorizationIdentity getAuthorizationIdentity()
public Principal getPrincipal()
public <P,R> R accept(RealmEventVisitor<P,R> visitor, P param)
RealmEvent
accept
in class RealmEvent
P
- the visitor parameter typeR
- the visitor return typevisitor
- the visitorparam
- the parameter to pass to the visitor handleXxx
methodhandleXxx
methodpublic abstract boolean isAuthorized()
true
if the authentication was successful, false
if it failedCopyright © 2019 JBoss by Red Hat. All rights reserved.