Class ExternalIDPManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker<ExternalIdentityProvider>
-
- org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalIDPManagerImpl
-
- All Implemented Interfaces:
ExternalIdentityProviderManager
public class ExternalIDPManagerImpl extends AbstractServiceTracker<ExternalIdentityProvider> implements ExternalIdentityProviderManager
ExternalIDPManagerImpl
is used to manage registered external identity provider. This class automatically tracks the IDPs that are registered via OSGi but can also be used in non-OSGi environments by manually adding and removing the providers.
-
-
Constructor Summary
Constructors Constructor Description ExternalIDPManagerImpl()
Default constructor used by OSGiExternalIDPManagerImpl(Whiteboard whiteboard)
Constructor used by non OSGi
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalIdentityProvider
getProvider(@NotNull String name)
Returns the registered identity provider with the given name.-
Methods inherited from class org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker
getServices, start, stop
-
-
-
-
Constructor Detail
-
ExternalIDPManagerImpl
public ExternalIDPManagerImpl()
Default constructor used by OSGi
-
ExternalIDPManagerImpl
public ExternalIDPManagerImpl(Whiteboard whiteboard)
Constructor used by non OSGi- Parameters:
whiteboard
- the whiteboard
-
-
Method Detail
-
getProvider
public ExternalIdentityProvider getProvider(@NotNull @NotNull String name)
Description copied from interface:ExternalIdentityProviderManager
Returns the registered identity provider with the given name.- Specified by:
getProvider
in interfaceExternalIdentityProviderManager
- Parameters:
name
- the provider name- Returns:
- the registered provider or
null
-
-