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
Default implementation for the
TokenConfiguration
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindCredentialsSupport
(CredentialsSupport credentialsSupport) @NotNull Context
@NotNull String
getName()
Returns the name of this security configuration.@NotNull TokenProvider
getTokenProvider
(@NotNull Root root) Returns a new instance ofTokenProvider
.@NotNull List<? extends ValidatorProvider>
getValidators
(@NotNull String workspaceName, @NotNull Set<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 Details
-
TokenConfigurationImpl
public TokenConfigurationImpl() -
TokenConfigurationImpl
-
-
Method Details
-
bindCredentialsSupport
-
unbindCredentialsSupport
-
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 List<? extends ValidatorProvider> getValidators(@NotNull @NotNull String workspaceName, @NotNull @NotNull Set<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
- Specified by:
getContext
in interfaceSecurityConfiguration
- Overrides:
getContext
in classSecurityConfiguration.Default
- Returns:
- The context defined by this configuration.
-
getTokenProvider
Returns a new instance ofTokenProvider
.- Specified by:
getTokenProvider
in interfaceTokenConfiguration
- Parameters:
root
- The target root.- Returns:
- A new instance of
TokenProvider
.
-