RLMAppCredentials
@interface RLMAppCredentials : NSObject
Opaque credentials representing a specific Realm App user.
-
The name of the identity provider which generated the credentials token.
Declaration
Objective-C
@property (nonatomic) RLMIdentityProvider _Nonnull provider;
-
Construct and return credentials from a Facebook account token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithFacebookToken: (nonnull RLMAppCredentialsToken)token;
-
Construct and return credentials from a Google account token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithGoogleToken: (nonnull RLMAppCredentialsToken)token;
-
Construct and return credentials from an Apple account token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithAppleToken: (nonnull RLMAppCredentialsToken)token;
-
Construct and return credentials for a MongoDB Realm function using a mongodb document as a json payload. If the json can not be successfully serialised and error will be produced and the object will be nil.
Declaration
Objective-C
+ (nonnull instancetype) credentialsWithFunctionPayload:(nonnull NSDictionary *)payload error:(NSError *_Nullable *_Nullable)error;
-
Construct and return credentials from a user api key.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithUserAPIKey:(nonnull NSString *)apiKey;
-
Construct and return credentials from a server api key.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithServerAPIKey:(nonnull NSString *)apiKey;
-
Construct and return credentials from a MongoDB Realm username and password.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithUsername:(nonnull NSString *)username password:(nonnull NSString *)password;
-
Construct and return credentials from a JSON Web Token.
Declaration
Objective-C
+ (nonnull instancetype)credentialsWithJWT:(nonnull NSString *)token;
-
Construct and return anonymous credentials
Declaration
Objective-C
+ (nonnull instancetype)anonymousCredentials;