public class

CredentialManager

extends Object
java.lang.Object
   ↳ com.kinvey.java.auth.CredentialManager

Summary

Public Constructors
CredentialManager(CredentialStore credentialStore)
Public Methods
Credential createAndStoreCredential(KinveyAuthResponse response, String userId)
Credential loadCredential(String userId)
void makePersistent(String userId, Credential credential)
void removeCredential(String userId)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CredentialManager (CredentialStore credentialStore)

Public Methods

public Credential createAndStoreCredential (KinveyAuthResponse response, String userId)

Parameters
response response received from a new token request
userId username or null if no persistent store is being used
Returns
  • new credential object
Throws
IOException

public Credential loadCredential (String userId)

Parameters
userId a valid userId to retrieve the credential from storage
Returns
  • a credential object if one is found otherwise null is returned
Throws
IOException error in access the low-level storage mechanism

public void makePersistent (String userId, Credential credential)

Parameters
userId unique string to hash the credential with
credential a credential object to store
Throws
IOException error accessing the low-level storage mechanism

public void removeCredential (String userId)