Class DynamicConfiguration
- java.lang.Object
-
- javax.security.auth.login.Configuration
-
- org.apache.flink.runtime.security.DynamicConfiguration
-
public class DynamicConfiguration extends Configuration
A dynamic JAAS configuration.Makes it possible to define Application Configuration Entries (ACEs) at runtime, building upon an (optional) underlying configuration. Entries from the underlying configuration take precedence over dynamic entries.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description DynamicConfiguration(Configuration delegate)
Create a dynamic configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAppConfigurationEntry(String name, AppConfigurationEntry... entry)
Add entries for the given application name.AppConfigurationEntry[]
getAppConfigurationEntry(String name)
Retrieve the AppConfigurationEntries for the specified name from this Configuration.void
refresh()
-
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
-
-
-
-
Constructor Detail
-
DynamicConfiguration
public DynamicConfiguration(@Nullable Configuration delegate)
Create a dynamic configuration.- Parameters:
delegate
- an underlying configuration to delegate to, or null.
-
-
Method Detail
-
addAppConfigurationEntry
public void addAppConfigurationEntry(String name, AppConfigurationEntry... entry)
Add entries for the given application name.
-
getAppConfigurationEntry
public AppConfigurationEntry[] getAppConfigurationEntry(String name)
Retrieve the AppConfigurationEntries for the specified name from this Configuration.- Specified by:
getAppConfigurationEntry
in classConfiguration
- Parameters:
name
- the name used to index the Configuration.- Returns:
- an array of AppConfigurationEntries for the specified name from this Configuration, or null if there are no entries for the specified name
-
refresh
public void refresh()
- Overrides:
refresh
in classConfiguration
-
-