public class TunnelConnectEvent extends Object implements UserEvent, CredentialEvent, TunnelEvent
If a Listener
throws
a GuacamoleException when handling an event of this type, the tunnel connection
is effectively vetoed and will be subsequently closed.
Constructor and Description |
---|
TunnelConnectEvent(AuthenticatedUser authenticatedUser,
Credentials credentials,
org.apache.guacamole.net.GuacamoleTunnel tunnel)
Creates a new TunnelConnectEvent which represents the connecting of the
given tunnel via a request associated with the given credentials.
|
Modifier and Type | Method and Description |
---|---|
AuthenticatedUser |
getAuthenticatedUser()
Returns the AuthenticatedUser identifying the user triggering the event,
if any.
|
Credentials |
getCredentials()
Returns the current credentials of the user triggering the event, if any.
|
org.apache.guacamole.net.GuacamoleTunnel |
getTunnel()
Returns the tunnel associated with this event, if any.
|
public TunnelConnectEvent(AuthenticatedUser authenticatedUser, Credentials credentials, org.apache.guacamole.net.GuacamoleTunnel tunnel)
authenticatedUser
- The AuthenticatedUser associated with the user that is connecting the
tunnel, if any.credentials
- The credentials associated with the request that connected the
tunnel. Note that these credentials are not necessarily the same as
the credentials provided when the user authenticated.tunnel
- The tunnel being connected.public AuthenticatedUser getAuthenticatedUser()
UserEvent
getAuthenticatedUser
in interface UserEvent
public Credentials getCredentials()
CredentialEvent
getCredentials
in interface CredentialEvent
public org.apache.guacamole.net.GuacamoleTunnel getTunnel()
TunnelEvent
getTunnel
in interface TunnelEvent
Copyright © 2018. All rights reserved.