Package com.castlabs.android.drm

# Class MemoryKeyStore

java.lang.Object
com.castlabs.android.drm.KeyStore
com.castlabs.android.drm.MemoryKeyStore

public class MemoryKeyStore extends KeyStore
Simple implementation of `KeyStore` that stores all keys in memory.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MemoryKeyStore()`
  Creates a new instance of MemoryKeyStore.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getLicenseKeysCount()`
  Get count of stored license keys

  ### Methods inherited from class com.castlabs.android.drm.KeyStore

  `add, delete, deleteAll, get, getAll`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MemoryKeyStore

    public MemoryKeyStore()
    Creates a new instance of MemoryKeyStore. This implementation stores DRM keys in memory using a HashMap.

- ## Method Details

  - ### getLicenseKeysCount

    public int getLicenseKeysCount()
    Description copied from class: `KeyStore`
    Get count of stored license keys
    Specified by:
      `getLicenseKeysCount` in class `KeyStore`
    Returns:
      count of stored keys