This method should be called something like 'detectAuthorizationMethod' , since that is its objective.