'Verify that the signature for some data is valid.
@param assoc_handle: The handle of the association used to sign the
data.
@type assoc_handle: str
@param message: The signed message to verify
@type message: openid.message.Message
@returns: C{True} if the signature is valid, C{False} if not.
@returntype: bool'

def verify(self, assoc_handle, message):

    assoc = self.getAssociation(assoc_handle, dumb=True)
    if (not assoc):
        oidutil.log(('failed    to    get    assoc    with    handle    %r    to    verify    message    %r' % (assoc_handle, message)))
        return False
    try:
        valid = assoc.checkMessageSignature(message)
    except ValueError as ex:
        oidutil.log(('Error    in    verifying    %s    with    %s:    %s' % (message, assoc, ex)))
        return False
    return valid
