java.lang.Object
com.cryptoalgo.oursql.model.Context

public class Context extends Object
A pseudo-singleton for storing global application state.
  • Field Details

    • prefs

      public Preferences prefs
      A shared preferences node for general application pref storage
    • hashInstance

      public MessageDigest hashInstance
      A shared SHA-256 hashing instance to be used throughout the application
  • Constructor Details

    • Context

      public Context()
  • Method Details

    • getInstance

      public static Context getInstance()
      Get a shared context instance. This method is present to conform to the singleton pattern.
      Returns:
      An instance of Context