Class WhiteboardUserAuthenticationFactory
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker<UserAuthenticationFactory>
-
- org.apache.jackrabbit.oak.security.user.whiteboard.WhiteboardUserAuthenticationFactory
-
- All Implemented Interfaces:
UserAuthenticationFactory
public class WhiteboardUserAuthenticationFactory extends AbstractServiceTracker<UserAuthenticationFactory> implements UserAuthenticationFactory
DynamicUserAuthenticationFactorybased on the available whiteboard services.
-
-
Constructor Summary
Constructors Constructor Description WhiteboardUserAuthenticationFactory(@Nullable UserAuthenticationFactory defaultFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable AuthenticationgetAuthentication(@NotNull UserConfiguration userConfiguration, @NotNull Root root, @Nullable String userId)Returns an implementationAuthenticationfor the specifieduserId.-
Methods inherited from class org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker
getServices, start, stop
-
-
-
-
Constructor Detail
-
WhiteboardUserAuthenticationFactory
public WhiteboardUserAuthenticationFactory(@Nullable @Nullable UserAuthenticationFactory defaultFactory)
-
-
Method Detail
-
getAuthentication
@Nullable public @Nullable Authentication getAuthentication(@NotNull @NotNull UserConfiguration userConfiguration, @NotNull @NotNull Root root, @Nullable @Nullable String userId)
Description copied from interface:UserAuthenticationFactoryReturns an implementationAuthenticationfor the specifieduserId.- Specified by:
getAuthenticationin interfaceUserAuthenticationFactory- Parameters:
userConfiguration- The user configuration.root- TheRootthat provides repository access.userId- The userId for which a user authentication is provided.- Returns:
- The authentication object for the given
configurationanduserIdornullif this implementation cannot not handle the specified parameters.
-
-