Class RemoteSerializationSecurityManager
- java.lang.Object
-
- com.atlassian.bamboo.serialization.AbstractSerializationSecurityManager
-
- com.atlassian.bamboo.agent.remote.serialization.RemoteSerializationSecurityManager
-
- All Implemented Interfaces:
SerializationSecurityManager
public class RemoteSerializationSecurityManager extends AbstractSerializationSecurityManager
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.serialization.AbstractSerializationSecurityManager
completeClassNameWhitelist, pluginProvidedClassNameWhitelist
-
-
Constructor Summary
Constructors Constructor Description RemoteSerializationSecurityManager(@NotNull com.atlassian.event.api.EventPublisher eventPublisher, @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor, @NotNull com.atlassian.plugin.event.PluginEventManager pluginEventManager, @NotNull ServerStateService serverStateService, @NotNull SystemSerializableClassWhitelistProvider systemSerializableClassWhitelistProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addWhitelistedClassNames(com.google.common.collect.ImmutableSet.Builder<String> whitelistBuilder)
This method should be overridden by implementations to modify class whitelist.void
onAgentRegistered(@NotNull AgentRegisteredEvent event)
void
onWhitelistChanged(@NotNull BambooHomeDirectoryClassWhitelistChanged event)
This whitelist is propagated from server and contains entries from a file in BAMBOO_HOME directory-
Methods inherited from class com.atlassian.bamboo.serialization.AbstractSerializationSecurityManager
getClassNameWhitelist, isBlacklisted, pluginDisabled, pluginEnabled, pluginModuleDisabled, pluginModuleEnabled, pluginUninstalled, pluginUpgraded, recalculateMasterClassWhitelist, registerPluginEventListeners, unregisterPluginEventListeners
-
-
-
-
Constructor Detail
-
RemoteSerializationSecurityManager
@Autowired public RemoteSerializationSecurityManager(@NotNull @NotNull com.atlassian.event.api.EventPublisher eventPublisher, @NotNull @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor, @NotNull @NotNull com.atlassian.plugin.event.PluginEventManager pluginEventManager, @NotNull @NotNull ServerStateService serverStateService, @NotNull @NotNull SystemSerializableClassWhitelistProvider systemSerializableClassWhitelistProvider)
-
-
Method Detail
-
onAgentRegistered
@EventListener public void onAgentRegistered(@NotNull @NotNull AgentRegisteredEvent event)
-
onWhitelistChanged
@EventListener public void onWhitelistChanged(@NotNull @NotNull BambooHomeDirectoryClassWhitelistChanged event)
This whitelist is propagated from server and contains entries from a file in BAMBOO_HOME directory
-
addWhitelistedClassNames
protected void addWhitelistedClassNames(@NotNull com.google.common.collect.ImmutableSet.Builder<String> whitelistBuilder)
Description copied from class:AbstractSerializationSecurityManager
This method should be overridden by implementations to modify class whitelist.- Specified by:
addWhitelistedClassNames
in classAbstractSerializationSecurityManager
-
-