public class AuthenticationConfigurationImpl extends ConfigurationBase implements AuthenticationConfiguration
AuthenticationConfiguration
with the
following characteristics:
LoginContextProvider
: Returns the default implementation of
LoginContextProvider
that handles standard JAAS based logins and
deals with pre-authenticated subjects.SecurityConfiguration.Default
DEFAULT_APP_NAME, NAME, PARAM_APP_NAME, PARAM_CONFIG_SPI_NAME
Constructor and Description |
---|
AuthenticationConfigurationImpl()
Constructor for OSGi
|
AuthenticationConfigurationImpl(@NotNull SecurityProvider securityProvider)
Constructor for non-OSGi
|
Modifier and Type | Method and Description |
---|---|
@NotNull LoginContextProvider |
getLoginContextProvider(@NotNull ContentRepository contentRepository)
Create a
LoginContextProvider using standard
JAAS
functionality. |
@NotNull java.lang.Iterable<Monitor<?>> |
getMonitors(@NotNull StatisticsProvider statisticsProvider) |
@NotNull java.lang.String |
getName()
Returns the name of this security configuration.
|
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setParameters, setRootProvider, setSecurityProvider, setTreeProvider
getCommitHooks, getConflictHandlers, getContext, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommitHooks, getConflictHandlers, getContext, getParameters, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer
public AuthenticationConfigurationImpl()
public AuthenticationConfigurationImpl(@NotNull @NotNull SecurityProvider securityProvider)
securityProvider
- The SecurityProvider
this configuration belongs to.@NotNull public @NotNull java.lang.String getName()
SecurityConfiguration
getName
in interface SecurityConfiguration
getName
in class SecurityConfiguration.Default
@NotNull public @NotNull java.lang.Iterable<Monitor<?>> getMonitors(@NotNull @NotNull StatisticsProvider statisticsProvider)
getMonitors
in interface SecurityConfiguration
@NotNull public @NotNull LoginContextProvider getLoginContextProvider(@NotNull @NotNull ContentRepository contentRepository)
LoginContextProvider
using standard
JAAS
functionality. In case no login configuration for the specified app name
can be retrieve this implementation uses the default as defined by
ConfigurationUtil.getDefaultConfiguration(org.apache.jackrabbit.oak.spi.security.ConfigurationParameters)
.
The LoginContextProvider
implementation is intended to be used with
LoginModule
orAuthenticationConfiguration.PARAM_APP_NAME
: The appName passed to
Configuration#getAppConfigurationEntry(String)
. The default
value is AuthenticationConfiguration.DEFAULT_APP_NAME
.getLoginContextProvider
in interface AuthenticationConfiguration
contentRepository
- The content repository.LoginContextProvider
.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.