RLMCredentials

Objective-C


@interface RLMCredentials : NSObject

스위프트

@_nonSendable(_assumed) class RLMCredentials : NSObject, @unchecked Sendable

특정 Realm 앱 사용자를 나타내는 불투명한 자격 증명입니다.

  • 자격 증명 토큰을 생성한 ID 제공자의 이름입니다.

    선언

    Objective-C

    @property (nonatomic, readonly) RLMIdentityProvider _Nonnull provider;

    스위프트

    var provider: RLMIdentityProvider { get }
  • Facebook 계정 토큰에서 자격 증명을 생성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithFacebookToken:
        (nonnull RLMCredentialsToken)token;

    스위프트

    convenience init(facebookToken token: String)
  • Google 계정 토큰에서 자격 증명을 구성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithGoogleAuthCode:
        (nonnull RLMCredentialsToken)token;

    스위프트

    convenience init(googleAuthCode token: String)
  • Google ID 토큰에서 자격 증명을 구성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithGoogleIdToken:
        (nonnull RLMCredentialsToken)token;

    스위프트

    convenience init(googleIdToken token: String)
  • Apple 계정 토큰에서 자격 증명을 생성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithAppleToken:
        (nonnull RLMCredentialsToken)token;

    스위프트

    convenience init(appleToken token: String)
  • mongodb 문서를 json 페이로드로 사용하여 Atlas App Services 함수에 대한 자격 증명을 생성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithFunctionPayload:
        (nonnull NSDictionary<NSString *, id<RLMBSON>> *)payload;

    스위프트

    convenience init(functionPayload payload: [String : any RLMBSON])
  • 사용자 API 키에서 자격 증명을 구성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithUserAPIKey:(nonnull NSString *)apiKey;

    스위프트

    convenience init(userAPIKey apiKey: String)
  • 서버 API 키에서 자격 증명을 구성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithServerAPIKey:(nonnull NSString *)apiKey;

    스위프트

    convenience init(serverAPIKey apiKey: String)
  • 이메일과 비밀번호에서 Atlas App Services 자격 증명을 구성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithEmail:(nonnull NSString *)email
                                        password:(nonnull NSString *)password;

    스위프트

    convenience init(email: String, password: String)
  • JSON Web Token에서 자격 증명을 구성하고 반환합니다.

    선언

    Objective-C

    + (nonnull instancetype)credentialsWithJWT:(nonnull NSString *)token;

    스위프트

    convenience init(jwt token: String)
  • 익명 자격 증명 구성 및 반환

    선언

    Objective-C

    + (nonnull instancetype)anonymousCredentials;

    스위프트

    class func anonymous() -> Self