@Test void toSetOfSpiffeIdsDefaultSeparator() { val spiffeIdsAsString = " spiffe: val spiffeIdSet = SpiffeIdUtils.toSetOfSpiffeIds(spiffeIdsAsString); assertNotNull(spiffeIdSet); assertEquals(2, spiffeIdSet.size()); assertTrue(spiffeIdSet.contains(SpiffeId.parse("spiffe: assertTrue(spiffeIdSet.contains(SpiffeId.parse("spiffe: }
public static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds, final char separator) { if (isBlank(spiffeIds)) { return Collections.emptySet(); } if (!SUPPORTED_SEPARATORS.contains(separator)) { throw new IllegalArgumentException("Separator character is not supported."); } val array = parseArray(spiffeIds, separator); return Arrays.stream(array) .map(SpiffeId::parse) .collect(Collectors.toSet()); }
SpiffeIdUtils { public static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds, final char separator) { if (isBlank(spiffeIds)) { return Collections.emptySet(); } if (!SUPPORTED_SEPARATORS.contains(separator)) { throw new IllegalArgumentException("Separator character is not supported."); } val array = parseArray(spiffeIds, separator); return Arrays.stream(array) .map(SpiffeId::parse) .collect(Collectors.toSet()); } }
SpiffeIdUtils { public static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds, final char separator) { if (isBlank(spiffeIds)) { return Collections.emptySet(); } if (!SUPPORTED_SEPARATORS.contains(separator)) { throw new IllegalArgumentException("Separator character is not supported."); } val array = parseArray(spiffeIds, separator); return Arrays.stream(array) .map(SpiffeId::parse) .collect(Collectors.toSet()); } private  SpiffeIdUtils(); }
SpiffeIdUtils { public static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds, final char separator) { if (isBlank(spiffeIds)) { return Collections.emptySet(); } if (!SUPPORTED_SEPARATORS.contains(separator)) { throw new IllegalArgumentException("Separator character is not supported."); } val array = parseArray(spiffeIds, separator); return Arrays.stream(array) .map(SpiffeId::parse) .collect(Collectors.toSet()); } private  SpiffeIdUtils(); static Set<SpiffeId> getSpiffeIdSetFromFile(final Path spiffeIdsFile); static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds, final char separator); static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds); }
SpiffeIdUtils { public static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds, final char separator) { if (isBlank(spiffeIds)) { return Collections.emptySet(); } if (!SUPPORTED_SEPARATORS.contains(separator)) { throw new IllegalArgumentException("Separator character is not supported."); } val array = parseArray(spiffeIds, separator); return Arrays.stream(array) .map(SpiffeId::parse) .collect(Collectors.toSet()); } private  SpiffeIdUtils(); static Set<SpiffeId> getSpiffeIdSetFromFile(final Path spiffeIdsFile); static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds, final char separator); static Set<SpiffeId> toSetOfSpiffeIds(final String spiffeIds);  }