You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB

6 years ago
  1. /*
  2. * Copyright 2017 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/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 "FIRAuthRPCRequest.h"
  18. #import "FIRIdentityToolkitRequest.h"
  19. NS_ASSUME_NONNULL_BEGIN
  20. @interface FIRResetPasswordRequest : FIRIdentityToolkitRequest <FIRAuthRPCRequest>
  21. /** @property oobCode
  22. @brief The oobCode sent in the request.
  23. */
  24. @property(nonatomic, copy, readonly) NSString *oobCode;
  25. /** @property updatedPassword
  26. @brief The new password sent in the request.
  27. */
  28. @property(nonatomic, copy, readonly) NSString *updatedPassword;
  29. /** @fn initWithEndpoint:requestConfiguration:
  30. @brief Please use initWithOobCode:newPassword:requestConfiguration: instead.
  31. */
  32. - (nullable instancetype)initWithEndpoint:(NSString *)endpoint
  33. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration
  34. NS_UNAVAILABLE;
  35. /** @fn initWithOobCode:newPassword:requestConfiguration:
  36. @brief Designated initializer.
  37. @param oobCode The OOB Code.
  38. @param newPassword The new password.
  39. @param requestConfiguration An object containing configurations to be added to the request.
  40. */
  41. - (nullable instancetype)initWithOobCode:(NSString *)oobCode
  42. newPassword:(nullable NSString *)newPassword
  43. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration;
  44. @end
  45. NS_ASSUME_NONNULL_END