def __init__(self, path, consumer, token=None, method=None, 
            realm=""):
        
        if path.endswith('*'):
            self.match = re.compile("%s.*" % path.rsplit('*', 1)[0])
        else:
            self.match = re.compile("%s$" % path)
        self.consumer = validate_consumer(consumer)
        self.token = validate_token(token)
        self.method = method or SignatureMethod_HMAC_SHA1()
        self.realm = realm
Init OAuthFilter
dataset/ETHPy150Open benoitc/restkit/restkit/filters.py/OAuthFilter.__init__