Class SoftPkiCredentialContainer

All Implemented Interfaces:
PkiCredentialContainer

public class SoftPkiCredentialContainer extends AbstractKeyStorePkiCredentialContainer
Implements a PkiCredentialContainer based on a KeyStore that is held in memory (i.e. not using a HSM device for key storage).

Also see InMemoryPkiCredentialContainer that is an in-memory container that does not use key stores (and thus, does not generate any certificates as part of the key generation process).

Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • SoftPkiCredentialContainer

      public SoftPkiCredentialContainer(String providerName) throws KeyStoreException
      Constructor loading the security provider identified by providerName. No password is used for the generated key store.
      Parameters:
      providerName - the name of the security provider
      Throws:
      KeyStoreException - for errors creating the key store
    • SoftPkiCredentialContainer

      public SoftPkiCredentialContainer(Provider provider) throws KeyStoreException
      Constructor. No password is used for the generated key store.
      Parameters:
      provider - the security provider
      Throws:
      KeyStoreException - for errors creating the key store
    • SoftPkiCredentialContainer

      public SoftPkiCredentialContainer(String providerName, String password) throws KeyStoreException
      Constructor loading the security provider identified by providerName.
      Parameters:
      providerName - the name of the security provider
      password - the store password that we should use for the generated key store (may be null)
      Throws:
      KeyStoreException - for errors creating the key store
    • SoftPkiCredentialContainer

      public SoftPkiCredentialContainer(Provider provider, String password) throws KeyStoreException
      Constructor.
      Parameters:
      provider - the security provider
      password - the store password that we should use for the generated key store (may be null)
      Throws:
      KeyStoreException - for errors creating the key store
  • Method Details