private Set<String> determineCacheAttributes(final Map<String, Object> seed) {
        if (this.useAllAttributes) {
            return seed.keySet();
        }
        return Objects.requireNonNullElseGet(this.cacheKeyAttributes, () -> Set.of(defaultAttributeName));
    }
Gets the hash of the key elements from the seed {@link Map}. The key elements are specified by
the {@code cacheKeyAttributes} {@link Set} or if it is {@code null} the
{@code defaultAttributeName} is used as the key attribute.

@param seed Seed
@return Hash of key elements from the seed
support/cas-server-support-person-directory-core/src/main/java/org/apereo/cas/persondir/cache/AttributeBasedCacheKeyGenerator.java