@Override
    public Credentials getCredentials() {
        return getAuthenticatedUser().getCredentials();
    }
Creates a new AuthenticationSuccessEvent which represents a successful
authentication attempt by the user identified by the given
AuthenticatedUser object. Whether the authentication attempt is
related to an established session (a periodic re-authentication attempt
that updates session status) or not (a fresh login attempt) is
determined by the value of the provided flag.

@param authenticatedUser
    The AuthenticatedUser identifying the user that successfully
    authenticated.

@param existingSession
    Whether this AuthenticationSuccessEvent represents an
    re-authentication attempt that updates the status of an established
    Guacamole session.
guacamole-ext/src/main/java/org/apache/guacamole/net/event/AuthenticationSuccessEvent.java