public URI getPrimaryOrigin() throws GuacamoleException {
        URI primaryURI = getPrimaryURI();
        try {
            return new URI(primaryURI.getScheme(), null, primaryURI.getHost(), primaryURI.getPort(), null, null, null);
        }
        catch (URISyntaxException e) {
            throw new GuacamoleServerException("Request origin could not be "
                    + "derived from the configured primary URI.", e);
        }
    }
Returns the HTTP request origin for requests originating from this
instance via the primary URI (as returned by {@link #getPrimaryURI()}.
This value is essentially the same as the primary URI but with only the
scheme, host, and port present.

@return
    The HTTP request origin for requests originating from this instance
    via the primary URI.

@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