FIRAppAttestProvider.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright 2021 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FIRAppCheckProvider.h"
  18. #import "FIRAppCheckAvailability.h"
  19. @class FIRApp;
  20. NS_ASSUME_NONNULL_BEGIN
  21. /// Firebase App Check provider that verifies app integrity using the
  22. /// [DeviceCheck](https://developer.apple.com/documentation/devicecheck/dcappattestservice) API.
  23. /// This class is available on all platforms for select OS versions. See
  24. /// https://firebase.google.com/docs/ios/learn-more for more details.
  25. FIR_APP_ATTEST_PROVIDER_AVAILABILITY
  26. NS_SWIFT_NAME(AppAttestProvider)
  27. @interface FIRAppAttestProvider : NSObject <FIRAppCheckProvider>
  28. - (instancetype)init NS_UNAVAILABLE;
  29. /// The default initializer.
  30. /// @param app A `FirebaseApp` instance.
  31. /// @return An instance of `AppAttestProvider` if the provided `FirebaseApp` instance contains all
  32. /// required parameters.
  33. - (nullable instancetype)initWithApp:(FIRApp *)app;
  34. @end
  35. NS_ASSUME_NONNULL_END