java.lang.Object
io.hotmoka.whitelisting.WhiteListingClassLoaders
A provider of white-listing class loaders.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WhiteListingClassLoaderYields a white-listing class loader that loads classes from the given jars, provided as byte arrays.
-
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 arraysverificationVersion- 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
-