public abstract class ProviderFactory<T extends ProviderTraits> extends Object
| Constructor and Description |
|---|
ProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Provider |
acquire(T traits)
Creates and installs a security provider of the specific type, using the
given traits to perform its configuration.
|
void |
release(Provider provider)
Releases the given provider instance; sub-classes may want to implement
custom cleanup logic on a per-instance basis.
|
public abstract Provider acquire(T traits) throws ProviderException
traits - the provider-specific set of configuration parameters.Provider if successful, null otherwise.SmartCardExceptionProviderExceptionpublic void release(Provider provider) throws ProviderException
provider - the provider to release.ProviderExceptionCopyright © 2012-2014 Andrea Funtò. See here for terms and conditions.