Package org.apache.guacamole.net.event
Class AuthenticationSuccessEvent
- java.lang.Object
-
- org.apache.guacamole.net.event.AuthenticationSuccessEvent
-
- All Implemented Interfaces:
CredentialEvent,UserEvent
public class AuthenticationSuccessEvent extends Object implements UserEvent, CredentialEvent
An event which is triggered whenever a user's credentials pass authentication. The credentials that passed authentication are included within this event, and can be retrieved using getCredentials().If a
Listenerthrows a GuacamoleException when handling an event of this type, successful authentication is effectively vetoed and will be subsequently processed as though the authentication failed.
-
-
Constructor Summary
Constructors Constructor Description AuthenticationSuccessEvent(AuthenticatedUser authenticatedUser)Creates a new AuthenticationSuccessEvent which represents a successful authentication attempt by the user identified by the given AuthenticatedUser object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticatedUsergetAuthenticatedUser()Returns the AuthenticatedUser identifying the user triggering the event, if any.CredentialsgetCredentials()Returns the current credentials of the user triggering the event, if any.
-
-
-
Constructor Detail
-
AuthenticationSuccessEvent
public AuthenticationSuccessEvent(AuthenticatedUser authenticatedUser)
Creates a new AuthenticationSuccessEvent which represents a successful authentication attempt by the user identified by the given AuthenticatedUser object.- Parameters:
authenticatedUser- The AuthenticatedUser identifying the user that successfully authenticated.
-
-
Method Detail
-
getAuthenticatedUser
public AuthenticatedUser getAuthenticatedUser()
Description copied from interface:UserEventReturns the AuthenticatedUser identifying the user triggering the event, if any.- Specified by:
getAuthenticatedUserin interfaceUserEvent- Returns:
- The AuthenticatedUser identifying the user triggering the event, if any, or null if no AuthenticatedUser is associated with the event.
-
getCredentials
public Credentials getCredentials()
Description copied from interface:CredentialEventReturns the current credentials of the user triggering the event, if any.- Specified by:
getCredentialsin interfaceCredentialEvent- Returns:
- The current credentials of the user triggering the event, if any, or null if no credentials are associated with the event.
-
-