Class DynamicConfiguration
java.lang.Object
javax.security.auth.login.Configuration
org.apache.flink.runtime.security.DynamicConfiguration
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 -
Constructor Summary
ConstructorsConstructorDescriptionDynamicConfiguration(Configuration delegate) Create a dynamic configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppConfigurationEntry(String name, AppConfigurationEntry... entry) Add entries for the given application name.Retrieve the AppConfigurationEntries for the specified name from this Configuration.voidrefresh()Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
DynamicConfiguration
Create a dynamic configuration.- Parameters:
delegate- an underlying configuration to delegate to, or null.
-
-
Method Details
-
addAppConfigurationEntry
Add entries for the given application name. -
getAppConfigurationEntry
Retrieve the AppConfigurationEntries for the specified name from this Configuration.- Specified by:
getAppConfigurationEntryin 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:
refreshin classConfiguration
-