NO-JIRA allow enabling security at runtime
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/45ebe4e6 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/45ebe4e6 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/45ebe4e6 Branch: refs/heads/master Commit: 45ebe4e63d2848e11ccfc2e697cea87216a0b81a Parents: ef6e394 Author: Justin Bertram <jbert...@apache.org> Authored: Fri Jun 1 08:42:22 2018 -0500 Committer: Clebert Suconic <clebertsuco...@apache.org> Committed: Mon Jun 4 12:01:02 2018 -0400 ---------------------------------------------------------------------- .../apache/activemq/artemis/core/security/SecurityStore.java | 2 ++ .../artemis/core/security/impl/SecurityStoreImpl.java | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/45ebe4e6/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/SecurityStore.java ---------------------------------------------------------------------- diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/SecurityStore.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/SecurityStore.java index 301356e..b3ccc34 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/SecurityStore.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/SecurityStore.java @@ -29,5 +29,7 @@ public interface SecurityStore { boolean isSecurityEnabled(); + void setSecurityEnabled(boolean securityEnabled); + void stop(); } http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/45ebe4e6/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java ---------------------------------------------------------------------- diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java index 3b94b13..99dcc62 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java @@ -60,7 +60,7 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC private volatile long lastCheck; - private final boolean securityEnabled; + private boolean securityEnabled; private final String managementClusterUser; @@ -98,6 +98,11 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC } @Override + public void setSecurityEnabled(boolean securityEnabled) { + this.securityEnabled = securityEnabled; + } + + @Override public void stop() { securityRepository.unRegisterListener(this); }