SafeClassDefiner
public interface ClassDefiner
Modifier and Type | Method | Description |
---|---|---|
Class<?> |
defineClass(ClassLoader parentLoader,
String name,
byte[] data) |
Define a class
|
static ClassDefiner |
getInstance() |
|
default boolean |
isBypassAccessChecks() |
Returns if the defined classes can bypass access checks
|
default boolean isBypassAccessChecks()
@NotNull Class<?> defineClass(@NotNull ClassLoader parentLoader, @NotNull String name, @NotNull byte[] data)
parentLoader
- the parent classloadername
- the name of the classdata
- the class data to loadClassFormatError
- if the class data is invalidNullPointerException
- if any of the arguments are null@NotNull static ClassDefiner getInstance()
Copyright © 2020. All rights reserved.