GCKCredentialsData 클래스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
사용자를 식별하고 인증할 수 있는 애플리케이션 관련 사용자 인증 정보 데이터를 유지관리하는 클래스입니다.
- 다음 이후:
- 4.4.8
NSObject를 상속합니다.
- (instancetype) initWithCredentials: |
|
(NSString *_Nullable) |
credentials |
|
지정된 사용자 인증 정보를 사용하여 새로 할당된 GCKCredentialsData
객체를 초기화하고 반환합니다.
credentialsType
에는 iOS 발신자가 보낸 항목임을 나타내는 기본값으로 'ios'가 할당됩니다.
- Parameters
-
credentials | A string to identify and possibly authenticate the user. May be nil . |
- (instancetype) initWithCredentials: |
|
(NSString *_Nullable) |
credentials |
credentialsType: |
|
(NSString *_Nullable) |
credentialsType |
|
|
| |
지정된 사용자 인증 정보 및 사용자 인증 정보 유형을 사용하여 새로 할당된 GCKCredentialsData
객체를 초기화하고 반환합니다.
- Parameters
-
credentials | A string to identify and possibly authenticate the user. May be nil . |
credentialsType | A string to identify the type of the credentials. May be nil . |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003e\u003ccode\u003eGCKCredentialsData\u003c/code\u003e stores application-specific credentials to identify and potentially authenticate users.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to initialize with credentials and a credentials type (defaulting to "ios" if not specified).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecredentials\u003c/code\u003e and \u003ccode\u003ecredentialsType\u003c/code\u003e properties can be accessed to retrieve the stored values.\u003c/p\u003e\n"],["\u003cp\u003eThis class is available since Google Cast SDK v4.4.8.\u003c/p\u003e\n"]]],["The `GCKCredentialsData` class manages application-specific user credentials. Key actions include initializing the class instance via `-init`, `-initWithCredentials:` or `-initWithCredentials:credentialsType:`. Initialization allows setting credentials, a string for user identification and possible authentication, and optionally, `credentialsType`, identifying the credential type. The default `credentialsType` is \"ios\". The class also has read only methods `credentials` and `credentialsType` to retrieve those stored data.\n"],null,["# GCKCredentialsData Class\n\n[Instance Methods](#pub-methods) \nGCKCredentialsData Class Reference \n\nOverview\n--------\n\nA class to maintain the application specific credentials data to identify and possibly authenticates the user.\n\nSince\n: 4.4.8\n\nInherits NSObject.\n\n|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - **init** |\n| ||\n| (instancetype) | - [initWithCredentials:](/cast/docs/reference/ios/interface_g_c_k_credentials_data#ada5bd74b764e23bfc36563e8166aa5e5) |\n| | Initializes and returns a newly allocated [GCKCredentialsData](/cast/docs/reference/ios/interface_g_c_k_credentials_data \"A class to maintain the application specific credentials data to identify and possibly authenticates ...\") object with the specified credentials. [More...](#ada5bd74b764e23bfc36563e8166aa5e5) |\n| ||\n| (instancetype) | - [initWithCredentials:credentialsType:](/cast/docs/reference/ios/interface_g_c_k_credentials_data#af54f24138f866978440e36d5af449ae8) |\n| | Initializes and returns a newly allocated [GCKCredentialsData](/cast/docs/reference/ios/interface_g_c_k_credentials_data \"A class to maintain the application specific credentials data to identify and possibly authenticates ...\") object with the specified credentials and credentials type. [More...](#af54f24138f866978440e36d5af449ae8) |\n| ||\n| (NSString \\*_Nullable) | - **credentials** |\n| ||\n| (NSString \\*_Nullable) | - **credentialsType** |\n| ||\n\nMethod Detail\n-------------\n\n|---------------------------------------|---|------------------------|---------------|---|\n| - (instancetype) initWithCredentials: | | (NSString \\*_Nullable) | *credentials* | |\n\nInitializes and returns a newly allocated [GCKCredentialsData](/cast/docs/reference/ios/interface_g_c_k_credentials_data \"A class to maintain the application specific credentials data to identify and possibly authenticates ...\") object with the specified credentials.\n\nThe `credentialsType` is assigned \"ios\" as default value to indicate it comes from an iOS sender.\n\nParameters\n:\n\n |-------------|------------------------------------------------------------------------|\n | credentials | A string to identify and possibly authenticate the user. May be `nil`. |\n\n\n|--------------------------------------------------------------------------------------------------------------------------------------|---|------------------------|-------------------|\n| - (instancetype) [initWithCredentials:](/cast/docs/reference/ios/interface_g_c_k_credentials_data#ada5bd74b764e23bfc36563e8166aa5e5) | | (NSString \\*_Nullable) | *credentials* |\n| credentialsType: | | (NSString \\*_Nullable) | *credentialsType* |\n| | | | |\n\nInitializes and returns a newly allocated [GCKCredentialsData](/cast/docs/reference/ios/interface_g_c_k_credentials_data \"A class to maintain the application specific credentials data to identify and possibly authenticates ...\") object with the specified credentials and credentials type.\n\nParameters\n:\n\n |-----------------|------------------------------------------------------------------------|\n | credentials | A string to identify and possibly authenticate the user. May be `nil`. |\n | credentialsType | A string to identify the type of the credentials. May be `nil`. |"]]