public interface

CredentialStore

com.kinvey.java.auth.CredentialStore
Known Indirect Subclasses

Class Overview

A mechanism to store, retrieve and purge credentials from memory and disk

Summary

Public Methods
abstract void delete(String userId)
abstract Credential load(String userId)
abstract void store(String userId, Credential credential)

Public Methods

public abstract void delete (String userId)

Parameters
userId the unique identifier to the credential to purge
Throws
IOException error in purging the credential from low-level storage

public abstract Credential load (String userId)

Parameters
userId a unique identifier for the stored credential
Returns
  • a credential object retrieved from storage otherwise null is returned
Throws
IOException error in retrieving from low-level storage mechanism

public abstract void store (String userId, Credential credential)

Parameters
userId a unique identifier to index the credential in storage
credential non-null credential to store
Throws
IOException error in storing to low-level storage mechanism