Interface CredentialBundles

All Known Implementing Classes:
DefaultCredentialBundleRegistry

public interface CredentialBundles
An interface for accessing registered credentials and key stores.
Author:
Martin Lindström
  • Method Details

    • getCredential

      @Nonnull PkiCredential getCredential(@Nonnull String id) throws NoSuchCredentialException
      Gets the PkiCredential registered under the given ID.
      Parameters:
      id - the unique credential ID
      Returns:
      a PkiCredential
      Throws:
      NoSuchCredentialException - if no credential is registered under the given ID
    • getCredentialProvider

      @Nonnull default Function<String,PkiCredential> getCredentialProvider()
      Gets a function that provides a credential based on an identifier.
      Returns:
      a function to resolve a PkiCredential based on a supplied identifier
    • getRegisteredCredentials

      @Nonnull List<String> getRegisteredCredentials()
      Gets a list of all ID:s for registered credentials.
      Returns:
      a list of all ID:s for registered credentials
    • getKeyStore

      @Nonnull KeyStore getKeyStore(@Nonnull String id) throws NoSuchKeyStoreException
      Gets the KeyStore registered under the given ID.
      Parameters:
      id - the unique key store ID
      Returns:
      a KeyStore
      Throws:
      NoSuchKeyStoreException - if no key store is registered under the given ID
    • getKeyStoreProvider

      @Nonnull default Function<String,KeyStore> getKeyStoreProvider()
      Gets a function that provides a key store based on an identifier.
      Returns:
      a function to resolve a KeyStore based on a supplied identifier
    • getRegisteredKeyStores

      @Nonnull List<String> getRegisteredKeyStores()
      Gets a list of all ID:s for registered key stores.
      Returns:
      a list of all ID:s for registered key stores