From 1e42d050c3d4dc707359a0fd3cbf8dca52e91324 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Tue, 25 Nov 2014 16:15:40 +0000 Subject: 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 --- .../server/security/encryption/AESKeyFileEncrypterFactory.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'qpid/java') 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 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()); } -- cgit v1.2.1