|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.security.principal.ProviderRegistryImpl
public class ProviderRegistryImpl
This is the default implementation of the PrincipalProviderRegistry
interface.
Constructor Summary | |
---|---|
ProviderRegistryImpl(PrincipalProvider defaultPrincipalProvider)
Create an instance of ProviderRegistryImpl with the given
default principal provider. |
Method Summary | |
---|---|
PrincipalProvider |
getDefault()
|
PrincipalProvider |
getProvider(String className)
|
PrincipalProvider[] |
getProviders()
Returns all registered providers. |
PrincipalProvider |
registerProvider(Properties config)
Registers a new provider by means of a configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProviderRegistryImpl(PrincipalProvider defaultPrincipalProvider)
ProviderRegistryImpl
with the given
default principal provider.
NOTE that the provider must be initialized by the caller.
defaultPrincipalProvider
- The default principal provider.Method Detail |
---|
public PrincipalProvider registerProvider(Properties config) throws RepositoryException
PrincipalProviderRegistry
LoginModuleConfig.PARAM_PRINCIPAL_PROVIDER_CLASS
to be able to create a instance of PrincipalProvider.
The Properties will be passed to the instanciated Provider via
PrincipalProvider.init(Properties)
registerProvider
in interface PrincipalProviderRegistry
config
- Properties for the Provider
null
if the configuration
was incomplete.
RepositoryException
- if an error occurs while creating the
provider instance.PrincipalProviderRegistry.registerProvider(Properties)
public PrincipalProvider getDefault()
getDefault
in interface PrincipalProviderRegistry
PrincipalProviderRegistry.getDefault()
public PrincipalProvider getProvider(String className)
getProvider
in interface PrincipalProviderRegistry
className
- Name of the principal provider class.
null
if no provider with
the given class name was registered.PrincipalProviderRegistry.getProviders()
public PrincipalProvider[] getProviders()
PrincipalProviderRegistry
getProviders
in interface PrincipalProviderRegistry
PrincipalProviderRegistry.getProviders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |