Class RealmIdentityAuthorizationEvent
- java.lang.Object
- 
- org.wildfly.security.auth.server.event.RealmEvent
- 
- org.wildfly.security.auth.server.event.RealmAuthorizationEvent
- 
- org.wildfly.security.auth.server.event.RealmIdentityAuthorizationEvent
 
 
 
- 
- Direct Known Subclasses:
- RealmIdentityFailedAuthorizationEvent,- RealmIdentitySuccessfulAuthorizationEvent
 
 public abstract class RealmIdentityAuthorizationEvent extends RealmAuthorizationEvent An event indicating that one identity attempted to authorize as another identity.- Author:
- David M. Lloyd
 
- 
- 
Field SummaryFields Modifier and Type Field Description private PrincipalnewPrincipal
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedRealmIdentityAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal)Construct a new instance.
 - 
Method SummaryAll 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.PrincipalgetNewPrincipal()Get the principal to which the existing identity is being authorized to act.- 
Methods inherited from class org.wildfly.security.auth.server.event.RealmAuthorizationEventgetAuthorizationIdentity, getPrincipal, isAuthorized
 
- 
 
- 
- 
- 
Field Detail- 
newPrincipalprivate final Principal newPrincipal 
 
- 
 - 
Constructor Detail- 
RealmIdentityAuthorizationEventprotected RealmIdentityAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal) Construct a new instance.- Parameters:
- authorizationIdentity- the identity of the authorizing party
- principal- the authorization principal
- newPrincipal- the authorize-as principal
 
 
- 
 - 
Method Detail- 
getNewPrincipalpublic Principal getNewPrincipal() Get the principal to which the existing identity is being authorized to act.- Returns:
- the new principal
 
 - 
acceptpublic <P,R> R accept(RealmEventVisitor<P,R> visitor, P param) Description copied from class:RealmEventAccept the given visitor, calling the method which is most applicable to this event type.- Overrides:
- acceptin class- RealmAuthorizationEvent
- Type Parameters:
- P- the visitor parameter type
- R- the visitor return type
- Parameters:
- visitor- the visitor
- param- the parameter to pass to the visitor- handleXxxmethod
- Returns:
- the value returned from the visitor handleXxxmethod
 
 
- 
 
-