public abstract class GeneralClassProtection
extends java.lang.Object
| 构造器和说明 |
|---|
GeneralClassProtection() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
addAll(byte[] a1,
byte[] a2) |
com.fr.third.javassist.CtClass |
completeSelf(com.fr.third.javassist.ClassPool classPool)
在打包时调用,返回自己完整的字节码,用于文件处理
|
void |
executeProtect()
执行
|
java.lang.String |
getFileName()
获取对应原始文件名
|
protected java.lang.ClassLoader |
getTargetLoader() |
boolean |
isDeleteFile(com.fr.third.javassist.ClassPool classPool)
默认情况是有Hidden注解的就删除原文件
|
protected void |
modifyMD5(com.fr.third.javassist.CtClass ctClass,
byte[] byteCodes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytes, getName, md5protected void modifyMD5(com.fr.third.javassist.CtClass ctClass,
byte[] byteCodes)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.ClassLoader getTargetLoader()
public void executeProtect()
ClassProtectionexecuteProtect 在接口中 ClassProtectionpublic com.fr.third.javassist.CtClass completeSelf(com.fr.third.javassist.ClassPool classPool)
throws java.lang.Exception
ClassProtectioncompleteSelf 在接口中 ClassProtectionjava.lang.Exceptionpublic boolean isDeleteFile(com.fr.third.javassist.ClassPool classPool)
isDeleteFile 在接口中 ClassProtectionpublic byte[] addAll(byte[] a1,
byte[] a2)
addAll 在接口中 ClassProtectionpublic java.lang.String getFileName()
ClassProtectiongetFileName 在接口中 ClassProtection