UniversalPluginJarInspector

public final class UniversalPluginJarInspector

Validates the single ResourcePackManager artifact shared by Bukkit, Velocity, BungeeCord, and Geyser before it is installed or offered to another process.

This is deliberately independent of every platform API. Update transports can therefore use one validation policy before publishing executable bytes, while UniversalPluginJarInstaller uses the same policy before writing Geyser's extension directory.

Types

Link copied to clipboard
public final class Inspection extends Record

Properties

Link copied to clipboard
public final static List<String> DESCRIPTOR_ENTRIES
Link copied to clipboard
public final static List<String> ENTRYPOINT_ENTRIES
Link copied to clipboard
public final static int MAX_DESCRIPTOR_BYTES
Link copied to clipboard
public final static long MAX_ENTRY_BYTES
Link copied to clipboard
public final static int MAX_ENTRY_COUNT
Link copied to clipboard
public final static long MAX_JAR_BYTES
Link copied to clipboard
public final static long MAX_TOTAL_UNCOMPRESSED_BYTES

Functions

Link copied to clipboard
public static int compareVersions(String left, String right)
Compares validated semantic-ish plugin versions.
Link copied to clipboard
public static UniversalPluginJarInspector.Inspection inspect(Path sourceJar)
Link copied to clipboard
public static String sha256(Path file)