Interface CustomClassFilter

    • Method Detail

      • permits

        @CheckForNull
        default Boolean permits​(Class<?> c)
        Determine whether a class should be permitted by ClassFilter.isBlacklisted(Class) of ClassFilter.DEFAULT.
        Parameters:
        c - the class
        Returns:
        true to permit it when it would normally be rejected (for example due to having a custom serialization method and being from a third-party library); false to reject it when it would normally be permitted; null to express no opinion (the default)
      • permits

        @CheckForNull
        default Boolean permits​(String name)
        Determine whether a class should be permitted by ClassFilter.isBlacklisted(String) of ClassFilter.DEFAULT.
        Parameters:
        name - a class name
        Returns:
        true to permit it when it would normally be rejected (currently useless); false to reject it when it would normally be permitted (currently due to ClassFilter.STANDARD; null to express no opinion (the default)