Class CredentialManager
This class is used to manage credential objects.
Inheritance
System.Object
CredentialManager
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class CredentialManager : object
Constructors
| Improve this Doc View SourceCredentialManager(ICredentialStore)
Initializes a new instance of the CredentialManager class with a CredentialStore implementation
Declaration
public CredentialManager(ICredentialStore store)
Parameters
Type | Name | Description |
---|---|---|
ICredentialStore | store | Store. |
Methods
| Improve this Doc View SourceCreateAndStoreCredential(KinveyAuthResponse, String, String, String)
Creates a new Credential object from a Kinvey user login/create request, and saves the it in the Credential Store.
Declaration
public Credential CreateAndStoreCredential(KinveyAuthResponse response, string userId, string ssoGroupKey, string deviceID)
Parameters
Type | Name | Description |
---|---|---|
KinveyAuthResponse | response | Response. |
System.String | userId | User _id. |
System.String | ssoGroupKey | SSO Group Key. |
System.String | deviceID | Device Id. |
Returns
Type | Description |
---|---|
Credential | The store credential. |
LoadCredential(String, String)
Loads the credential of a provided user._id from the previously configured Credential Store.
Declaration
public Credential LoadCredential(string userId, string ssoGroupKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | User _id. |
System.String | ssoGroupKey | SSO Group Key. |
Returns
Type | Description |
---|---|
Credential | The credential. |
RemoveCredential(String, String)
Removes the user._id's credential from the Credential Store.
Declaration
public void RemoveCredential(string userId, string ssoGroupKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | User identifier. |
System.String | ssoGroupKey | SSO Group Key. |