Class RemoteSerializationSecurityManager
java.lang.Object
com.atlassian.bamboo.serialization.AbstractSerializationSecurityManager
com.atlassian.bamboo.agent.remote.serialization.RemoteSerializationSecurityManager
- All Implemented Interfaces:
SerializationSecurityManager
-
Field Summary
Fields inherited from class com.atlassian.bamboo.serialization.AbstractSerializationSecurityManager
completeClassNameWhitelist, pluginProvidedClassNameWhitelist
-
Constructor Summary
ConstructorDescriptionRemoteSerializationSecurityManager
(@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
Modifier and TypeMethodDescriptionprotected 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 directoryMethods inherited from class com.atlassian.bamboo.serialization.AbstractSerializationSecurityManager
getClassNameWhitelist, isBlacklisted, pluginDisabled, pluginEnabled, pluginModuleDisabled, pluginModuleEnabled, pluginUninstalled, pluginUpgraded, recalculateMasterClassWhitelist, registerPluginEventListeners, unregisterPluginEventListeners
-
Constructor Details
-
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 Details
-
onAgentRegistered
-
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
-