public void init(UserLDAPConfiguration config, Credentials credentials,
            Map<String, String> tokens, Set<String> effectiveGroups) {
        this.config = config;
        this.credentials = credentials;
        this.tokens = Collections.unmodifiableMap(tokens);
        this.effectiveGroups = effectiveGroups;
        this.bindDn = config.getBindDN();
        setIdentifier(config.getGuacamoleUsername());
    }
Initializes this AuthenticatedUser with the given credentials,
connection parameter tokens, and set of effective user groups.

@param config
    The configuration of the LDAP server that should be used for all
    queries related to this AuthenticatedUser.

@param credentials
    The credentials provided when this user was authenticated.

@param tokens
    A Map of all name/value pairs that should be applied as parameter
    tokens when connections are established using the AuthenticatedUser.

@param effectiveGroups
    The unique identifiers of all user groups which affect the
    permissions available to this user.
extensions/guacamole-auth-ldap/src/main/java/org/apache/guacamole/auth/ldap/user/LDAPAuthenticatedUser.java