public final class ProviderFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProviderFactory.Callback
Provides callback functions that can be invoked by a provider.
|
| Modifier and Type | Method and Description |
|---|---|
static Provider |
createProvider(String providerName,
ProviderFactory.Callback callback)
Create a WVCM provider with the given class name.
|
static Provider |
createProvider(String providerName,
ProviderFactory.Callback callback,
Map<String,String> initArgs)
Get a WVCM provider with the given class name, with specified initializers.
|
public static Provider createProvider(String providerName, ProviderFactory.Callback callback) throws Exception
providerName - the fully-qualified class name of the provider.callback - the object containing the getAuthentication
method that the Provider will call whenever it needs
to authenticate the current user.Exception - if no class of the given name can be found, loaded, or initialized.public static Provider createProvider(String providerName, ProviderFactory.Callback callback, Map<String,String> initArgs) throws Exception
providerName - the class name of the provider.callback - the object containing the getAuthentication
method that the Provider will call whenever it needs
to authenticate the current user.initArgs - a Map containing provider-specific initialization values.Exception - if no class of the given name can be found, loaded, or initialized.Copyright © IBM 2018. All rights reserved.