public boolean isPrimaryHostname(String hostname) throws GuacamoleException {
        URI primaryURI = getPrimaryURI();
        return hostnameMatches(hostname, 0, primaryURI);
    }
Returns whether the given hostname is the same as the hostname in the
primary URI (as returned by {@link #getPrimaryURI()}. Hostnames are
case-insensitive.

@param hostname
    The hostname to test.

@return
    true if the hostname is the same as the hostname in the primary URI,
    false otherwise.

@throws GuacamoleException
    If the required property for configuring the primary URI is missing
    or cannot be parsed.
extensions/guacamole-auth-sso/modules/guacamole-auth-sso-ssl/src/main/java/org/apache/guacamole/auth/ssl/conf/ConfigurationService.java