public Set<Class<?>> getTrustedClasses() {
        return Collections.unmodifiableSet(trustedClasses);
    }
Returns an immutable set of trusted classes.

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