No Description

FIROAuthCredential_Internal.h 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 "FIROAuthCredential.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. /** @extension FIROAuthCredential
  20. @brief Internal implementation of FIRAuthCredential for generic credentials.
  21. */
  22. @interface FIROAuthCredential()
  23. /** @property OAuthResponseURLString
  24. @brief A string representation of the response URL corresponding to this OAuthCredential.
  25. */
  26. @property(nonatomic, readonly, nullable) NSString *OAuthResponseURLString;
  27. /** @property sessionID
  28. @brief The session ID used when completing the headful-lite flow.
  29. */
  30. @property(nonatomic, readonly, nullable) NSString *sessionID;
  31. /** @fn initWithProviderId:IDToken:accessToken:pendingToken
  32. @brief Designated initializer.
  33. @param providerID The provider ID associated with the credential being created.
  34. @param IDToken The ID Token associated with the credential being created.
  35. @param accessToken The access token associated with the credential being created.
  36. @param pendingToken The pending token associated with the credential being created.
  37. */
  38. - (instancetype)initWithProviderID:(NSString *)providerID
  39. IDToken:(nullable NSString *)IDToken
  40. accessToken:(nullable NSString *)accessToken
  41. pendingToken:(nullable NSString *)pendingToken NS_DESIGNATED_INITIALIZER;
  42. /** @fn initWithProviderId:sessionID:OAuthResponseURLString:
  43. @brief Intitializer which takes a sessionID and an OAuthResponseURLString.
  44. @param providerID The provider ID associated with the credential being created.
  45. @param sessionID The session ID used when completing the headful-lite flow.
  46. @param OAuthResponseURLString The error that occurred if any.
  47. */
  48. - (instancetype)initWithProviderID:(NSString *)providerID
  49. sessionID:(NSString *)sessionID
  50. OAuthResponseURLString:(NSString *)OAuthResponseURLString;
  51. @end
  52. NS_ASSUME_NONNULL_END