Class CryptLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--CryptLoader

public final class CryptLoader
extends java.lang.ClassLoader

This is the custom classloader that uses the specific "encryption" module to load the developers class files.


Constructor Summary
CryptLoader(java.io.File jarFile, java.lang.String key, java.lang.String mod)
          This constructor creates a default loader uses the specified jar file as a search path for classes, the key used for the encryption, and the module used to encrypt the data.
 
Method Summary
protected  java.lang.Class findClass(java.lang.String name)
          This method loads the specified class.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptLoader

public CryptLoader(java.io.File jarFile,
                   java.lang.String key,
                   java.lang.String mod)
This constructor creates a default loader uses the specified jar file as a search path for classes, the key used for the encryption, and the module used to encrypt the data.

Method Detail

findClass

protected java.lang.Class findClass(java.lang.String name)
This method loads the specified class.

Overrides:
findClass in class java.lang.ClassLoader
Returns:
returns the class for the name.