Class TokenConfigurationImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
-
- org.apache.jackrabbit.oak.spi.security.ConfigurationBase
-
- org.apache.jackrabbit.oak.security.authentication.token.TokenConfigurationImpl
-
- All Implemented Interfaces:
TokenConfiguration
,SecurityConfiguration
public class TokenConfigurationImpl extends ConfigurationBase implements TokenConfiguration
Default implementation for theTokenConfiguration
interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
SecurityConfiguration.Default
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authentication.token.TokenConfiguration
NAME
-
-
Constructor Summary
Constructors Constructor Description TokenConfigurationImpl()
TokenConfigurationImpl(@NotNull SecurityProvider securityProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindCredentialsSupport(CredentialsSupport credentialsSupport)
@NotNull Context
getContext()
@NotNull java.lang.String
getName()
Returns the name of this security configuration.@NotNull TokenProvider
getTokenProvider(@NotNull Root root)
Returns a new instance ofTokenProvider
.@NotNull java.util.List<? extends ValidatorProvider>
getValidators(@NotNull java.lang.String workspaceName, @NotNull java.util.Set<java.security.Principal> principals, @NotNull MoveTracker moveTracker)
Returns the list of validators that need to be executed for the specified workspace name.void
unbindCredentialsSupport(CredentialsSupport credentialsSupport)
-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.ConfigurationBase
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setParameters, setRootProvider, setSecurityProvider, setTreeProvider
-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.SecurityConfiguration.Default
getCommitHooks, getConflictHandlers, getProtectedItemImporters, getRepositoryInitializer, getWorkspaceInitializer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getCommitHooks, getConflictHandlers, getMonitors, getParameters, getProtectedItemImporters, getRepositoryInitializer, getWorkspaceInitializer
-
-
-
-
Constructor Detail
-
TokenConfigurationImpl
public TokenConfigurationImpl()
-
TokenConfigurationImpl
public TokenConfigurationImpl(@NotNull @NotNull SecurityProvider securityProvider)
-
-
Method Detail
-
bindCredentialsSupport
public void bindCredentialsSupport(CredentialsSupport credentialsSupport)
-
unbindCredentialsSupport
public void unbindCredentialsSupport(CredentialsSupport credentialsSupport)
-
getName
@NotNull public @NotNull java.lang.String getName()
Description copied from interface:SecurityConfiguration
Returns the name of this security configuration.- Specified by:
getName
in interfaceSecurityConfiguration
- Overrides:
getName
in classSecurityConfiguration.Default
- Returns:
- The name of this configuration.
-
getValidators
@NotNull public @NotNull java.util.List<? extends ValidatorProvider> getValidators(@NotNull @NotNull java.lang.String workspaceName, @NotNull @NotNull java.util.Set<java.security.Principal> principals, @NotNull @NotNull MoveTracker moveTracker)
Description copied from interface:SecurityConfiguration
Returns the list of validators that need to be executed for the specified workspace name.- Specified by:
getValidators
in interfaceSecurityConfiguration
- Overrides:
getValidators
in classSecurityConfiguration.Default
- Parameters:
workspaceName
- The name of the workspace.principals
- The set of principals associated with the subject that is committing modifications.moveTracker
- The move tracker associated with the commit.- Returns:
- A list of validators.
-
getContext
@NotNull public @NotNull Context getContext()
- Specified by:
getContext
in interfaceSecurityConfiguration
- Overrides:
getContext
in classSecurityConfiguration.Default
- Returns:
- The context defined by this configuration.
-
getTokenProvider
@NotNull public @NotNull TokenProvider getTokenProvider(@NotNull @NotNull Root root)
Returns a new instance ofTokenProvider
.- Specified by:
getTokenProvider
in interfaceTokenConfiguration
- Parameters:
root
- The target root.- Returns:
- A new instance of
TokenProvider
.
-
-