Interface CredentialBundles
- All Known Implementing Classes:
DefaultCredentialBundleRegistry
public interface CredentialBundles
An interface for accessing registered credentials and key stores.
- Author:
- Martin Lindström
-
Method Summary
Modifier and TypeMethodDescriptiongetCredential
(String id) Gets thePkiCredential
registered under the given ID.default Function
<String, PkiCredential> Gets a function that provides a credential based on an identifier.getKeyStore
(String id) Gets theKeyStore
registered under the given ID.Gets a function that provides a key store based on an identifier.Gets a list of all ID:s for registered credentials.Gets a list of all ID:s for registered key stores.
-
Method Details
-
getCredential
Gets thePkiCredential
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
Gets a function that provides a credential based on an identifier.- Returns:
- a function to resolve a
PkiCredential
based on a supplied identifier
-
getRegisteredCredentials
Gets a list of all ID:s for registered credentials.- Returns:
- a list of all ID:s for registered credentials
-
getKeyStore
Gets theKeyStore
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
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
Gets a list of all ID:s for registered key stores.- Returns:
- a list of all ID:s for registered key stores
-