Class Transformer.VerifyLoader

  • Enclosing class:
    Transformer

    private class Transformer.VerifyLoader
    extends java.lang.ClassLoader
    classloader used by transformer when verification is switched on to detect errors in transformed bytecode
    • Constructor Summary

      Constructors 
      Constructor Description
      VerifyLoader​(java.lang.ClassLoader parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] verify​(java.lang.String classname, java.security.ProtectionDomain protectionDomain, byte[] bytes)
      use the supplied bytes to define a class and try creating an instance via the empty constructor printing details of any errors which occur
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VerifyLoader

        public VerifyLoader​(java.lang.ClassLoader parent)
    • Method Detail

      • verify

        public byte[] verify​(java.lang.String classname,
                             java.security.ProtectionDomain protectionDomain,
                             byte[] bytes)
        use the supplied bytes to define a class and try creating an instance via the empty constructor printing details of any errors which occur
        Parameters:
        classname -
        protectionDomain -
        bytes -
        Returns:
        the bytes if all goes well otherwise null