IdentityProvider.h 1017 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/IO/SystemFile.h>
  10. #include <AzCore/std/string/string.h>
  11. #include <AzCore/std/smart_ptr/unique_ptr.h>
  12. namespace AWSMetrics
  13. {
  14. //! Base class to be implemented by IdentityProvider to retrive an ID for identity.
  15. class IdentityProvider
  16. {
  17. public:
  18. IdentityProvider() = default;
  19. virtual ~IdentityProvider() = default;
  20. //! Retrieve the ID for identity.
  21. //! @return ID for identity.
  22. virtual AZStd::string GetIdentifier() const = 0;
  23. //! Factory method for creating the concrete identify provider.
  24. //! @return Pointer to the concrete identity provider.
  25. static AZStd::unique_ptr<IdentityProvider> CreateIdentityProvider();
  26. private:
  27. static AZStd::string GetEngineVersion();
  28. };
  29. }