Package org.soulwing.s2ks
Class KeyPairStorageLocator
- java.lang.Object
-
- org.soulwing.s2ks.KeyPairStorageLocator
-
public final class KeyPairStorageLocator extends java.lang.ObjectA service locator forKeyPairStorage.- Author:
- Carl Harris
-
-
Constructor Summary
Constructors Constructor Description KeyPairStorageLocator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyPairStoragegetInstance(java.lang.String provider, java.util.Properties configuration)Gets a new key pair storage instance from the specified provider.static KeyPairStoragegetInstance(java.lang.String provider, java.util.Properties configuration, java.util.function.Supplier<java.util.ServiceLoader<KeyPairStorageProvider>> loader)Gets a new key pair storage instance from the specified provider.
-
-
-
Method Detail
-
getInstance
public static KeyPairStorage getInstance(java.lang.String provider, java.util.Properties configuration) throws NoSuchProviderException, ProviderConfigurationException
Gets a new key pair storage instance from the specified provider.- Parameters:
provider- provider name; e.g.LOCALconfiguration- configuration properties- Returns:
- key pair storage instance
- Throws:
NoSuchProviderException- if there exists no provider with the given nameProviderConfigurationException- if the provider reports an error in creating and configuring the storage instance
-
getInstance
public static KeyPairStorage getInstance(java.lang.String provider, java.util.Properties configuration, java.util.function.Supplier<java.util.ServiceLoader<KeyPairStorageProvider>> loader) throws NoSuchProviderException, ProviderConfigurationException
Gets a new key pair storage instance from the specified provider.- Parameters:
provider- provider name; e.g.LOCALconfiguration- configuration propertiesloader- a supplier for a service loader- Returns:
- key pair storage instance
- Throws:
NoSuchProviderException- if there exists no provider with the given nameProviderConfigurationException- if the provider reports an error in creating and configuring the storage instance
-
-