/**
  * Stores the UID and Key that were registered in the Shared Preferences. The UID and Key and used
  * to encrypt/decrypt the Token that is returned from the sample Cognito developer authentication
  * application.
  */
 public static void registerDeviceId(SharedPreferences sharedPreferences, String uid, String key) {
   AmazonSharedPreferencesWrapper.storeValueInSharedPreferences(
       sharedPreferences, AWS_DEVICE_UID, uid);
   AmazonSharedPreferencesWrapper.storeValueInSharedPreferences(
       sharedPreferences, AWS_DEVICE_KEY, key);
 }
 /**
  * Set all of the Shared Preferences used by the sample Cognito developer authentication
  * application to null. This function is useful if the user needs/wants to log out to clear any
  * user specific information.
  */
 public static void wipe(SharedPreferences sharedPreferences) {
   AmazonSharedPreferencesWrapper.storeValueInSharedPreferences(
       sharedPreferences, AWS_DEVICE_UID, null);
   AmazonSharedPreferencesWrapper.storeValueInSharedPreferences(
       sharedPreferences, AWS_DEVICE_KEY, null);
 }