| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*
- * Copyright 2019 Google
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #import <Foundation/Foundation.h>
- #import "FirebaseInstallations/Source/Library/InstallationsIDController/FIRInstallationsStatus.h"
- @class FIRInstallationsStoredAuthToken;
- @class FIRInstallationsStoredIIDCheckin;
- NS_ASSUME_NONNULL_BEGIN
- /**
- * The class is supposed to be used by `FIRInstallationsStore` only. It is required to
- * serialize/deserialize the installation data into/from `NSData` to be stored in Keychain.
- *
- * WARNING: Modification of the class properties can lead to incompatibility with the stored data
- * encoded by the previous class versions. Any modification must be evaluated and, if it is really
- * needed, the `storageVersion` must be bumped and proper migration code added.
- */
- @interface FIRInstallationsStoredItem : NSObject <NSSecureCoding>
- /// A stable identifier that uniquely identifies the app instance.
- @property(nonatomic, copy, nullable) NSString *firebaseInstallationID;
- /// The `refreshToken` is used to authorize the installation auth token requests.
- @property(nonatomic, copy, nullable) NSString *refreshToken;
- @property(nonatomic, nullable) FIRInstallationsStoredAuthToken *authToken;
- @property(nonatomic) FIRInstallationsStatus registrationStatus;
- /// Instance ID default auth token imported from IID store as a part of IID migration.
- @property(nonatomic, nullable) NSString *IIDDefaultToken;
- /// The version of local storage.
- @property(nonatomic, readonly) NSInteger storageVersion;
- @end
- NS_ASSUME_NONNULL_END
|