# Class CMKeyStoreInstance

java.lang.Object
com.io7m.canonmill.core.internal.CMKeyStoreInstance

@Immutable public final class CMKeyStoreInstance extends Object

A POJO keystore instance.

Instances are immutable and thread-safe.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<String, CMKeyStoreEntryCertificate>`
  `certEntriesByAlias()`
  `Map<String, CMKeyStoreEntryCertificate>`
  `certEntriesByCN()`
  `static CMKeyStoreInstance`
  `create(CMKeyStoreDescription description)`
  Create an instance from a description.
  `static CMKeyStoreInstance`
  `empty()`
  `Map<String, CMKeyStoreEntryKey>`
  `keyEntries()`

  ### Methods inherited from class Object

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

- ## Method Details

  - ### empty

    public static CMKeyStoreInstance empty()
    Returns:
      An empty instance

  - ### create

    public static CMKeyStoreInstance create(CMKeyStoreDescription description) throws IOException
    Create an instance from a description.
    Parameters:
      `description` - The input description
    Returns:
      An instance
    Throws:
      `IOException` - On errors

  - ### keyEntries

    public Map<String, CMKeyStoreEntryKey> keyEntries()
    Returns:
      A read-only view of the key entries

  - ### certEntriesByAlias

    public Map<String, CMKeyStoreEntryCertificate> certEntriesByAlias()
    Returns:
      A read-only view of the certificate entries by alias

  - ### certEntriesByCN

    public Map<String, CMKeyStoreEntryCertificate> certEntriesByCN()
    Returns:
      A read-only view of the certificate entries by common name