Constructor for creating an instance of a class with identity and access level.
The identity for authentication.
The access level for the user.
None
Authorizes access based on the API key and access level.
Returns true if access is authorized, otherwise returns an error object.
Represents a class for handling API key authorization based on access levels.