Auth_OpenID_SessionNegotiator::isAllowed PHP Method

isAllowed() public method

Is this combination of association type and session type allowed?
public isAllowed ( $assoc_type, $session_type )
    function isAllowed($assoc_type, $session_type)
    {
        $assoc_good = in_array(array($assoc_type, $session_type), $this->allowed_types);
        $matches = in_array($session_type, Auth_OpenID_getSessionTypes($assoc_type));
        return $assoc_good && $matches;
    }