summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2014-11-25 16:15:40 +0000
committerKeith Wall <kwall@apache.org>2014-11-25 16:15:40 +0000
commit1e42d050c3d4dc707359a0fd3cbf8dca52e91324 (patch)
tree52507b6920aaa2fcda6bcc1471e798d786c53996 /qpid/java
parent1b2ee301caad7b665cf1953c6df5457ccadd1fb3 (diff)
downloadqpid-python-1e42d050c3d4dc707359a0fd3cbf8dca52e91324.tar.gz
QPID-6242: [Java Broker] Fix defect on Windows 7 where the newly created empty y file was not writable
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1641645 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java
index b396d5ec46..a46f95c248 100644
--- a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java
+++ b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java
@@ -319,15 +319,7 @@ public class AESKeyFileEncrypterFactory implements ConfigurationSecretEncrypterF
public List<AclEntry> value() {
AclEntry.Builder builder = AclEntry.newBuilder();
builder.setType(AclEntryType.ALLOW);
- builder.setPermissions(AclEntryPermission.APPEND_DATA,
- AclEntryPermission.DELETE,
- AclEntryPermission.READ_ACL,
- AclEntryPermission.READ_ATTRIBUTES,
- AclEntryPermission.READ_DATA,
- AclEntryPermission.READ_NAMED_ATTRS,
- AclEntryPermission.WRITE_ACL,
- AclEntryPermission.WRITE_ATTRIBUTES,
- AclEntryPermission.WRITE_DATA);
+ builder.setPermissions(EnumSet.allOf(AclEntryPermission.class));
builder.setPrincipal(owner);
return Collections.singletonList(builder.build());
}