public Set<String> getTrustedPackages() {
        return Collections.unmodifiableSet(trustedPackages);
    }
Returns an immutable set of tusted packages.

@return the trusted packages
pac4j-core/src/main/java/org/pac4j/core/util/serializer/JavaSerializer.java