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 available
SecurityConfigurations
defining the individual plugins. In addition this provider gives access
to the configuration parameters that apply to the configurations with the
specified name.-
Method Summary
Modifier and TypeMethodDescription<T> TgetConfiguration(@NotNull Class<T> configClass) Returns the security configuration of the specifiedconfigClass.@NotNull Iterable<? extends SecurityConfiguration>Returns all availableSecurityConfigurations.@NotNull ConfigurationParametersgetParameters(@Nullable String name) Allows to retrieve the configuration parameters associated with a givenSecurityConfigurationaccessible by this provider.
-
Method Details
-
getParameters
Allows to retrieve the configuration parameters associated with a givenSecurityConfigurationaccessible by this provider. If the specified name isnullthe global config parameters will be returned.- Parameters:
name- Thenameof the security configuration.- Returns:
- The configuration parameters associated with the
SecurityConfigurationidentified by the specified name. If the specified name isnullthe global config parameters will be returned.
-
getConfigurations
Returns all availableSecurityConfigurations.- Returns:
- the available
SecurityConfigurations.
-
getConfiguration
Returns the security configuration of the specifiedconfigClass.- Type Parameters:
T-- Parameters:
configClass- The class of the configuration to retrieve.- Returns:
- The desired security configuration.
-