/** * @param path A {@link Path} to a file that contains an identity key * - never {@code null} */ public void addIdentity(Path path) { addIdentity(Objects.requireNonNull(path, "No path").toAbsolutePath().normalize().toString()); }
/** * @param path A {@link Path} to a file that contains an identity key * - never {@code null} */ public void addIdentity(Path path) { addIdentity(Objects.requireNonNull(path, "No path").toAbsolutePath().normalize().toString()); }
/** * @param ids Global identities - ignored if {@code null}/empty or already * have configured identities * @return {@code true} if updated identities */ public boolean updateGlobalIdentities(Collection<String> ids) { if (GenericUtils.isEmpty(ids) || (GenericUtils.size(getIdentities()) > 0)) { return false; } for (String id : ids) { addIdentity(id); } return true; }
/** * @param ids Global identities - ignored if {@code null}/empty or already * have configured identities * @return {@code true} if updated identities */ public boolean updateGlobalIdentities(Collection<String> ids) { if (GenericUtils.isEmpty(ids) || (GenericUtils.size(getIdentities()) > 0)) { return false; } for (String id : ids) { addIdentity(id); } return true; }
ValidateUtils.checkTrue(GenericUtils.size(valsList) > 0, "No identity files specified"); for (String id : valsList) { addIdentity(id);
ValidateUtils.checkTrue(GenericUtils.size(valsList) > 0, "No identity files specified"); for (String id : valsList) { addIdentity(id);
normal.addIdentity(path);
normal.addIdentity(path);