Interface CredentialBundleRegistry
- All Known Implementing Classes:
DefaultCredentialBundleRegistry
public interface CredentialBundleRegistry
Interface for registering
PkiCredentials and KeyStores.- Author:
- Martin Lindström
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterCredential(String id, PkiCredential credential) Registers a credential.voidregisterKeyStore(String id, KeyStore keyStore) Registers a key store.
-
Method Details
-
registerCredential
void registerCredential(@Nonnull String id, @Nonnull PkiCredential credential) throws IllegalArgumentException Registers a credential.- Parameters:
id- the unique credential IDcredential- thePkiCredentialto register- Throws:
IllegalArgumentException- if another credential already has been registered under the given ID
-
registerKeyStore
void registerKeyStore(@Nonnull String id, @Nonnull KeyStore keyStore) throws IllegalArgumentException Registers a key store.- Parameters:
id- the unique key store ID.keyStore- theKeyStoreto register.- Throws:
IllegalArgumentException- if another key store already has been registered under the given ID
-