FIRMultiFactorInfo.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright 2019 Google
  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/LICENSE2.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. NS_ASSUME_NONNULL_BEGIN
  18. /** @class FIRMultiFactorInfo
  19. @brief Safe public structure used to represent a second factor entity from a client perspective.
  20. This class is available on iOS only.
  21. */
  22. NS_SWIFT_NAME(MultiFactorInfo) API_UNAVAILABLE(macos, tvos, watchos) @interface FIRMultiFactorInfo
  23. : NSObject
  24. /**
  25. @brief The multi-factor enrollment ID.
  26. */
  27. @property(nonatomic, readonly) NSString *UID;
  28. /**
  29. @brief The user friendly name of the current second factor.
  30. */
  31. @property(nonatomic, readonly, nullable) NSString *displayName;
  32. /**
  33. @brief The second factor enrollment date.
  34. */
  35. @property(nonatomic, readonly) NSDate *enrollmentDate;
  36. /**
  37. @brief The identifier of the second factor.
  38. */
  39. @property(nonatomic, readonly) NSString *factorID;
  40. @end
  41. NS_ASSUME_NONNULL_END