public static void verifyConnectionRestrictions(Restrictable restrictable,
            String remoteAddress) throws GuacamoleException {
        verifyDateTimeRestrictions(restrictable);
        verifyTimeRestrictions(restrictable);
        verifyHostRestrictions(restrictable, remoteAddress);
    }
Verifies the connection restrictions supported by this extension for the
connection the user is attempting to access, throwing an exception if
any of the restrictions result in the connection being unavailable.

@param restrictable
    The object that supports restrictions that is to be verified to be
    usable within the current restrictions.

@param remoteAddress
    The remote address of the client from which the current user is
    logged in.

@throws GuacamoleException 
    If any of the restrictions should prevent the connection from being
    used by the user at the current time.
extensions/guacamole-auth-restrict/src/main/java/org/apache/guacamole/auth/restrict/RestrictionVerificationService.java