Interface SecurityProvider
-
- All Known Implementing Classes:
OpenSecurityProvider
,SecurityProviderImpl
@ProviderType public interface SecurityProvider
Main entry point for security related plugins to an Oak repository. The interface allow to access the availableSecurityConfiguration
s defining the individual plugins. In addition this provider gives access to the configuration parameters that apply to the configurations with the specifiedname
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getConfiguration(@NotNull Class<T> configClass)
Returns the security configuration of the specifiedconfigClass
.@NotNull Iterable<? extends SecurityConfiguration>
getConfigurations()
Returns all availableSecurityConfiguration
s.@NotNull ConfigurationParameters
getParameters(@Nullable String name)
Allows to retrieve the configuration parameters associated with a givenSecurityConfiguration
accessible by this provider.
-
-
-
Method Detail
-
getParameters
@NotNull @NotNull ConfigurationParameters getParameters(@Nullable @Nullable String name)
Allows to retrieve the configuration parameters associated with a givenSecurityConfiguration
accessible by this provider. If the specified name isnull
the global config parameters will be returned.- Parameters:
name
- Thename
of the security configuration.- Returns:
- The configuration parameters associated with the
SecurityConfiguration
identified by the specified name. If the specified name isnull
the global config parameters will be returned.
-
getConfigurations
@NotNull @NotNull Iterable<? extends SecurityConfiguration> getConfigurations()
Returns all availableSecurityConfiguration
s.- Returns:
- the available
SecurityConfiguration
s.
-
getConfiguration
@NotNull <T> T getConfiguration(@NotNull @NotNull Class<T> configClass)
Returns the security configuration of the specifiedconfigClass
.- Type Parameters:
T
-- Parameters:
configClass
- The class of the configuration to retrieve.- Returns:
- The desired security configuration.
-
-