Implemented a basic Authorizer interface.

Review: https://reviews.apache.org/r/18730