Classes for api key authentication