@Test public void testClientPermissionsMapOfStringInteger() { Map<String, Integer> map = new HashMap<>(); final String secret1 = "test1"; final String secret2 = "test2"; map.put(secret1, Permissions.DELETE.getCode()); map.put(secret1, Permissions.ENABLE.getCode()); map.put(secret2, Permissions.DISABLE.getCode()); final ClientPermissions clientPermission = new ClientPermissions(map); Assert.assertEquals(2, clientPermission.getSecrets().size()); }
protected Set<String> getSecrets() { return Collections.unmodifiableSet(new HashSet<String>(this.secretPermissions.keySet())); }
ClientPermissions { protected Set<String> getSecrets() { return Collections.unmodifiableSet(new HashSet<String>(this.secretPermissions.keySet())); } }
ClientPermissions { protected Set<String> getSecrets() { return Collections.unmodifiableSet(new HashSet<String>(this.secretPermissions.keySet())); } ClientPermissions();  ClientPermissions(final Map<String, Integer> secretPermissions); }
ClientPermissions { protected Set<String> getSecrets() { return Collections.unmodifiableSet(new HashSet<String>(this.secretPermissions.keySet())); } ClientPermissions();  ClientPermissions(final Map<String, Integer> secretPermissions); void addPermission(final String secretName, final Permissions permission); void removePermission(final String secretName, final Permissions permission); boolean hasPermission(final String secretName, final Permissions permission); void clearPermission(final String secretName); void clearAllPermissions(); }
ClientPermissions { protected Set<String> getSecrets() { return Collections.unmodifiableSet(new HashSet<String>(this.secretPermissions.keySet())); } ClientPermissions();  ClientPermissions(final Map<String, Integer> secretPermissions); void addPermission(final String secretName, final Permissions permission); void removePermission(final String secretName, final Permissions permission); boolean hasPermission(final String secretName, final Permissions permission); void clearPermission(final String secretName); void clearAllPermissions();  }