Class WhiteListingClassLoaders

java.lang.Object
io.hotmoka.whitelisting.WhiteListingClassLoaders

public final class WhiteListingClassLoaders extends Object
A provider of white-listing class loaders.
  • Method Details

    • of

      public static WhiteListingClassLoader of(Stream<byte[]> jars, long verificationVersion) throws UnsupportedVerificationVersionException
      Yields a white-listing class loader that loads classes from the given jars, provided as byte arrays.
      Parameters:
      jars - the jars, as byte arrays
      verificationVersion - the version of the verification module that must be used; this affects the set of white-listing annotations used by the class loader
      Returns:
      the class loader
      Throws:
      UnsupportedVerificationVersionException - if the annotations for the required verification version cannot be found in the database