public boolean isConnectionAllowed(IConnection conn) {
        if (log.isDebugEnabled()) {
            log.debug("isConnectionAllowed: {}", conn);
        }
        if (securityHandlers != null) {
            if (log.isDebugEnabled()) {
                log.debug("securityHandlers: {}", securityHandlers);
            }
            // loop through the handlers
            for (IScopeSecurityHandler handler : securityHandlers) {
                // if allowed continue to the next handler
                if (handler.allowed(conn)) {
                    continue;
                } else {
                    // if any handlers deny we return false
                    return false;
                }
            }
        }
        // default is to allow
        return true;
    }
public boolean isConnectionAllowed ( IConnection conn ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "isConnectionAllowed: {}" , conn ) ; } if ( securityHandlers != null ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "securityHandlers: {}" , securityHandlers ) ; } for ( IScopeSecurityHandler handler : securityHandlers ) { if ( handler . allowed ( conn ) ) { continue ; } else { return false ; } } } return true ; }
{@inheritDoc}