|
|
@ -39,12 +39,14 @@ import java.security.KeyFactory; |
|
|
|
import java.security.interfaces.RSAPublicKey; |
|
|
|
import java.security.interfaces.RSAPublicKey; |
|
|
|
import java.security.spec.X509EncodedKeySpec; |
|
|
|
import java.security.spec.X509EncodedKeySpec; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fr.form.share.constants.ShareComponentConstants.REU_INFO_PATH; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* created by Harrison on 2020/05/27 |
|
|
|
* created by Harrison on 2020/05/27 |
|
|
|
**/ |
|
|
|
**/ |
|
|
|
public class DownloadUtils { |
|
|
|
public class DownloadUtils { |
|
|
|
private static final String REUSES_URL = CloudCenter.getInstance().acquireUrlByKind("af.reuseInfo") + "file/download"; |
|
|
|
private static final String REUSES_URL = StableUtils.pathJoin(ShareComponentConstants.REU_INFO_PATH, "file/download"); |
|
|
|
private static final String PACKAGE_REUSES_URL = CloudCenter.getInstance().acquireUrlByKind("af.reuseInfo") + "package/download/"; |
|
|
|
private static final String PACKAGE_REUSES_URL = StableUtils.pathJoin(ShareComponentConstants.REU_INFO_PATH, "package/download/"); |
|
|
|
private static final String CERTIFICATE_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtsz62CPSWXZE/IYZRiAuTSZkw\n" + |
|
|
|
private static final String CERTIFICATE_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtsz62CPSWXZE/IYZRiAuTSZkw\n" + |
|
|
|
"1WOwer8+JFktK0uKLAUuQoBr+UjAMFtRA8W7JgKMDwZy/2liEAiXEOSPU/hrdV8D\n" + |
|
|
|
"1WOwer8+JFktK0uKLAUuQoBr+UjAMFtRA8W7JgKMDwZy/2liEAiXEOSPU/hrdV8D\n" + |
|
|
|
"tT541LnGi1X/hXiRwuttPWYN3L2GYm/d5blU+FBNwghBIrdAxXTzYBc6P4KL/oYX\n" + |
|
|
|
"tT541LnGi1X/hXiRwuttPWYN3L2GYm/d5blU+FBNwghBIrdAxXTzYBc6P4KL/oYX\n" + |
|
|
|