/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/cert/ |
H A D | CertBuilder.java | 90 logger.debug(exception.getMessage(), exception); in CertBuilder() 91 CustomException.throwException(ERROR.IO_CSR_ERROR, exception.getMessage()); in CertBuilder() 102 logger.debug(exception.getMessage(), exception); in CertBuilder() 103 CustomException.throwException(ERROR.NOT_SUPPORT_ERROR, exception.getMessage()); in CertBuilder() 105 logger.debug(exception.getMessage(), exception); in CertBuilder() 106 CustomException.throwException(ERROR.IO_CERT_ERROR, exception.getMessage()); in CertBuilder() 125 logger.debug(exception.getMessage(), exception); in withAuthorityKeyIdentifier() 126 CustomException.throwException(ERROR.NOT_SUPPORT_ERROR, exception.getMessage()); in withAuthorityKeyIdentifier() 128 logger.debug(exception.getMessage(), exception); in withAuthorityKeyIdentifier() 129 CustomException.throwException(ERROR.IO_CERT_ERROR, exception.getMessage()); in withAuthorityKeyIdentifier() [all...] |
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
H A D | KeyStoreHelper.java | 127 logger.debug(exception.getMessage(), exception); in KeyStoreHelper() 128 CustomException.throwException(ERROR.ACCESS_ERROR, "Init keystore failed: " + exception.getMessage() in KeyStoreHelper() 172 logger.debug(exception.getMessage(), exception); in hasAlias() 173 CustomException.throwException(ERROR.ACCESS_ERROR, exception.getMessage()); in hasAlias() 209 logger.debug(exception.getMessage(), exception); in loadPrivateKey() 210 CustomException.throwException(ERROR.ACCESS_ERROR, exception.getMessage()); in loadPrivateKey() 212 logger.debug(exception.getMessage(), exception); in loadPrivateKey() 261 logger.debug(exception.getMessage(), exception); in loadCertificates() 262 CustomException.throwException(ERROR.KEYSTORE_OPERATION_ERROR, exception.getMessage()); in loadCertificates() 296 logger.debug(exception.getMessage(), exceptio in store() [all...] |
H A D | KeyPairTools.java | 118 LOGGER.debug(e.getMessage(), e); in generateKeyPair() 119 CustomException.throwException(ERROR.NOT_SUPPORT_ERROR, e.getMessage()); in generateKeyPair() 147 LOGGER.debug(exception.getMessage(), exception); in stringToPublicKey() 148 CustomException.throwException(ERROR.ACCESS_ERROR, exception.getMessage()); in stringToPublicKey() 166 LOGGER.debug(exception.getMessage(), exception); in stringToPrivateKey() 167 CustomException.throwException(ERROR.ACCESS_ERROR, exception.getMessage()); in stringToPrivateKey()
|
H A D | CertUtils.java | 170 LOGGER.debug(exception.getMessage(), exception); in buildDN() 172 String.format("Error params near: %s. Reason: %s", nameString, exception.getMessage())); in buildDN() 297 LOGGER.debug(exception.getMessage(), exception); in createFixedContentSigner() 298 CustomException.throwException(ERROR.OPERATOR_CREATION_ERROR, exception.getMessage()); in createFixedContentSigner()
|
H A D | CertificateUtils.java | 70 throw new VerifyCertificateChainException("The certificate has expired! " + e.getMessage()); in verifyCertChain() 73 throw new VerifyCertificateChainException("verify certificate chain failed! " + e.getMessage()); in verifyCertChain()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/api/ |
H A D | CertTools.java | 85 LOGGER.debug(exception.getMessage(), exception); in generateRootCaCert() 86 CustomException.throwException(ERROR.IO_CERT_ERROR, exception.getMessage()); in generateRootCaCert() 109 LOGGER.debug(exception.getMessage(), exception); in generateSubCert() 110 CustomException.throwException(ERROR.IO_CERT_ERROR, exception.getMessage()); in generateSubCert() 137 LOGGER.debug(exception.getMessage(), exception); in generateCert() 138 CustomException.throwException(ERROR.IO_CERT_ERROR, exception.getMessage()); in generateCert() 164 LOGGER.debug(exception.getMessage(), exception); in generateEndCert() 165 CustomException.throwException(ERROR.IO_CERT_ERROR, exception.getMessage()); in generateEndCert() 186 LOGGER.debug(exception.getMessage(), exception); in generateCsr()
|
H A D | SignToolServiceImpl.java | 260 logger.debug(exception.getMessage(), exception); in signProfile() 261 logger.error(exception.getMessage()); in signProfile() 283 logger.error(verificationResult.getMessage()); in verifyProfile() 287 logger.debug(exception.getMessage(), exception); in verifyProfile() 288 logger.error(exception.getMessage()); in verifyProfile() 291 CustomException.throwException(ERROR.VERIFY_ERROR, "Verify Profile Failed! " + e.getMessage()); in verifyProfile() 352 logger.debug(exception.getMessage(), exception); in outputString() 353 CustomException.throwException(ERROR.WRITE_FILE_ERROR, exception.getMessage()); in outputString() 375 logger.debug(exception.getMessage(), exception); in outputCert() 376 CustomException.throwException(ERROR.WRITE_FILE_ERROR, exception.getMessage()); in outputCert() [all...] |
/developtools/packing_tool/adapter/ohos/ |
H A D | Scan.java | 88 LOG.error(ScanErrorEnum.SCAN_NOT_FOUND_ERROR + exception.getMessage()); in scanProcess() 91 LOG.error(ScanErrorEnum.SCAN_REMIND_ERROR + exception.getMessage()); in scanProcess() 188 LOG.error(ScanErrorEnum.SCAN_UNPACK_ERROR + e.getMessage()); in unpackHap() 189 throw new BundleException(ScanErrorEnum.SCAN_UNPACK_ERROR.msg + e.getMessage()); in unpackHap() 216 LOG.error(ScanErrorEnum.SCAN_UNPACK_ERROR + e.getMessage()); in unpackEntryToFile() 217 throw new BundleException(ScanErrorEnum.SCAN_UNPACK_ERROR.msg + e.getMessage()); in unpackEntryToFile() 248 LOG.error(ScanErrorEnum.SCAN_GET_JS_TEMPLATE_ERROR + e.getMessage()); in getJsTemplate() 249 throw new IOException(ScanErrorEnum.SCAN_GET_JS_TEMPLATE_ERROR.msg + e.getMessage()); in getJsTemplate() 258 LOG.error(ScanErrorEnum.SCAN_WRITEFILE_ERROR + e.getMessage()); in writeFile() 259 throw new IOException(ScanErrorEnum.SCAN_WRITEFILE_ERROR.msg + e.getMessage()); in writeFile() [all...] |
H A D | FileUtils.java | 76 LOG.error("getFileData IOException error: " + exception.getMessage()); in getFileData() 129 LOG.error("IOException error: " + msg.getMessage()); in getFileList() 158 LOG.error("get file content fail, msg is " + msg.getMessage()); in getFileContent() 179 LOG.error("stream close Error, msg is " + msg.getMessage()); in closeStream() 255 LOG.error("unzip file failed " + exception.getMessage()); in unzip() 289 LOG.error("deleteDirectory IOException : " + msg.getMessage()); in deleteDirectory() 307 LOG.error("format path IOException : " + msg.getMessage()); in getFormatedPath() 415 LOG.error("Compressor::checkModuleTypeInHaps io exception: " + exception.getMessage()); in getJsonInZips() 448 LOG.error("FileUtil::getProfileJson IOException: " + e.getMessage()); in getProfileJson() 503 LOG.error("input hap file is not found: " + e.getMessage()); in getSha256() [all...] |
H A D | Compressor.java | 366 LOG.error("Compressor::compressProcess file not found exception: " + exception.getMessage()); in defaultProcess() 369 LOG.error("Compressor::compressProcess Bundle exception: " + ex.getMessage()); in defaultProcess() 518 LOG.error("Compressor::hasGenerateBuildHash failed for json file is invalid." + e.getMessage()); in hasGenerateBuildHash() 567 LOG.error("Compressor::setGenerateBuildHash failed, json data err: " + e.getMessage()); in setGenerateBuildHash() 576 LOG.error("Compressor::setGenerateBuildHash failed for IOException " + e.getMessage()); in setGenerateBuildHash() 610 LOG.error("Compressor::copyFileToTempDir failed, IOException: " + e.getMessage()); in copyFileToTempDir() 631 LOG.error("Compressor::putBuildHash failed, " + e.getMessage()); in buildHash() 649 LOG.error("Compressor::checkSum failed, IOException or NoSuchAlgorithmException: " + e.getMessage()); in checkSum() 691 LOG.error("Compressor::putBuildHash failed, IOException: " + e.getMessage()); in putBuildHash() 694 LOG.error("Compressor::putBuildHash failed, json data err: " + e.getMessage()); in putBuildHash() [all...] |
H A D | PackageUtil.java | 142 LOG.warning("getPackagesFromPackInfo err: " + ex.getMessage()); in getPackageNameFromPackInfo() 162 LOG.warning("getBundleTypeFromModuleJson failed: " + ex.getMessage()); in getBundleTypeFromModuleJson() 196 LOG.warning("parseModuleJsonInfo err: " + ex.getMessage()); in parseModuleJsonInfo() 214 LOG.warning("getPackInfoContentFromPath err: " + ex.getMessage()); in getPackInfoContentFromPath() 232 LOG.warning("getPackInfoContentFromPath err: " + ex.getMessage()); in getModuleJsonContentFromPath() 249 LOG.warning("getZipEntryContent err: " + ex.getMessage()); in getZipEntryContent() 305 LOG.warning("rmdir err: " + ex.getMessage()); in rmdir() 320 LOG.warning("calc hash err: " + e.getMessage()); in hash() 330 LOG.warning("calc hash err: " + e.getMessage()); in hash() 359 LOG.error("addArchiveEntry err: " + e.getMessage()); in repackHsp() [all...] |
H A D | BinaryTool.java | 72 LOG.error("IOException, msg is: " + msg.getMessage()); in generateBinaryFile() 104 LOG.error("write packageInfo fail, msg is " + msg.getMessage()); in writePackageInfo() 157 LOG.error("write fail, msg is: " + msg.getMessage()); in writeFileInfo()
|
H A D | PackageNormalize.java | 73 LOG.error("PackageNormalize::normalize BundleException: " + ex.getMessage()); in normalize() 76 LOG.error("PackageNormalize::normalize IOException: " + ex.getMessage()); in normalize() 245 LOG.error("PackageNormalize::getCrcFromFile file not found exception: " + ignored.getMessage()); in getCrcFromFile() 248 LOG.error("PackageNormalize::getCrcFromFile io exception: " + exception.getMessage()); in getCrcFromFile()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/test/java/com/ohos/hapsigntool/ |
H A D | CertTest.java | 117 logger.error(exception, () -> exception.getMessage()); in testRootCaCert() 123 logger.error(exception, () -> exception.getMessage()); in testRootCaCert() 134 logger.error(exception, () -> exception.getMessage()); in testRootCaCert() 157 logger.info(exception, () -> exception.getMessage()); in testSubCaCert() 163 logger.info(exception, () -> exception.getMessage()); in testSubCaCert() 174 logger.info(exception, () -> exception.getMessage()); in testSubCaCert() 197 logger.info(exception, () -> exception.getMessage()); in testAppCert() 203 logger.info(exception, () -> exception.getMessage()); in testAppCert() 214 logger.info(exception, () -> exception.getMessage()); in testAppCert()
|
H A D | ProfileTest.java | 133 logger.info(exception, () -> exception.getMessage()); in testProfile() 151 CustomException.throwException(ERROR.VERIFY_ERROR, e.getMessage()); in testProfile() 163 logger.info(exception, () -> exception.getMessage()); in testProfile() 169 logger.info(exception, () -> exception.getMessage()); in testProfile()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/fsverity/ |
H A D | FsVerityGenerator.java | 78 throw new FsVerityDigestException("IOException: " + e.getMessage()); in generateMerkleTree() 80 throw new FsVerityDigestException("Invalid algorithm:" + e.getMessage()); in generateMerkleTree() 116 throw new FsVerityDigestException("Invalid algorithm" + e.getMessage(), e); in generateFsVerityDigest() 127 throw new FsVerityDigestException("Invalid algorithm" + e.getMessage(), e); in generateFsVerityDigest()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/error/ |
H A D | SignatureException.java | 71 public String getMessage() { in getMessage() method in SignatureException 78 sb.append(super.getMessage()); in getMessage()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/main/java/com/ohos/hapsigntool/ |
H A D | HapSignTool.java | 103 e.getError().getErrorCode(), e.getMessage())); in main() 107 ERROR.UNKNOWN_ERROR.getErrorCode(), e.getMessage())); in main() 410 return new RetMsg(e.getError(), e.getMessage()); in signApp() 412 return new RetMsg(ERROR.COMMAND_PARAM_ERROR, "paramException : " + e.getMessage()); in signApp() 414 return new RetMsg(ERROR.UNKNOWN_ERROR, "unknownException : " + e.getMessage()); in signApp() 436 return new RetMsg(e.getError(), e.getMessage()); in verifyApp() 438 return new RetMsg(ERROR.COMMAND_PARAM_ERROR, "paramException : " + e.getMessage()); in verifyApp() 440 return new RetMsg(ERROR.UNKNOWN_ERROR, "unknownException : " + e.getMessage()); in verifyApp() 462 return new RetMsg(e.getError(), e.getMessage()); in signProfile() 464 return new RetMsg(ERROR.COMMAND_PARAM_ERROR, "paramException : " + e.getMessage()); in signProfile() [all...] |
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/ |
H A D | VerifyHelper.java | 92 LOGGER.debug(exception.getMessage(), exception); in verifySignature() 93 CustomException.throwException(ERROR.SIGN_ERROR, "Failed to verify signature: " + exception.getMessage()); in verifySignature() 119 LOGGER.debug(exception.getMessage(), exception); in certStoreToCertList() 160 LOGGER.debug(exception.getMessage(), exception); in verify() 161 result.setMessage(exception.getMessage()); in verify() 198 LOGGER.debug(exception.getMessage(), exception); in verifyPkcs() 200 + exception.getMessage()); in verifyPkcs()
|
H A D | ProfileSignTool.java | 96 CustomException.throwException(ERROR.VERIFY_ERROR, "Generate Profile Failed! " + e.getMessage()); in generateP7b() 99 verificationResult.getMessage()); in generateP7b() 137 LOGGER.debug(e.getMessage(), e); in signProfile() 138 CustomException.throwException(ERROR.SIGN_ERROR, e.getMessage()); in signProfile()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/ |
H A D | VerifyHap.java | 152 LOGGER.error("verify: {}", verifyResult.getMessage()); in verify() 174 LOGGER.info("verify: {}", verifyResult.getMessage()); in verify() 269 result = new VerifyResult(false, VerifyResult.RET_IO_ERROR, e.getMessage()); in verifyHap() 272 result = new VerifyResult(false, VerifyResult.RET_SIGNATURE_NOT_FOUND_ERROR, e.getMessage()); in verifyHap() 275 result = new VerifyResult(false, VerifyResult.RET_UNSUPPORTED_FORMAT_ERROR, e.getMessage()); in verifyHap() 278 result = new VerifyResult(false, VerifyResult.RET_DIGEST_ERROR, e.getMessage()); in verifyHap() 281 result = new VerifyResult(false, VerifyResult.RET_CODE_SIGN_BLOCK_ERROR, e.getMessage()); in verifyHap() 284 result = new VerifyResult(false, VerifyResult.RET_SIGNATURE_ERROR, e.getMessage()); in verifyHap() 287 return new VerifyResult(false, VerifyResult.RET_CODE_SIGN_BLOCK_ERROR, e.getMessage()); in verifyHap()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/signer/ |
H A D | LocalSigner.java | 88 logger.debug(exception.getMessage(), exception); in getSignature() 89 CustomException.throwException(ERROR.SIGN_ERROR, exception.getMessage()); in getSignature()
|
H A D | SignerFactory.java | 116 LOGGER.warn("load remote signer from {} failed, msg: {}", signerPlugin, e.getMessage()); in loadRemoteSigner() 129 LOGGER.warn("{} can not convert to valid url, msg: {}", file, e.getMessage()); in fileToUrl() 142 LOGGER.warn("decode class location failed, will ignored. msg :{}", e.getMessage()); in getClassLocation()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/ |
H A D | VerificationResult.java | 49 public String getMessage() { in getMessage() method in VerificationResult
|
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/test/java/com/ohos/hapsigntoolcmd/ |
H A D | CmdUnitTest.java | 466 logger.info(exception, () -> exception.getMessage()); in testCmdKeypair() 507 logger.info(exception, () -> exception.getMessage()); in testCmdCsr() 538 logger.info(exception, () -> exception.getMessage()); in testCmdCert() 587 logger.info(exception, () -> exception.getMessage()); in testCmdCa() 623 logger.info(exception, () -> exception.getMessage()); in testCmdAppCert() 681 logger.info(exception, () -> exception.getMessage()); in testCmdProfileCert() 737 logger.info(exception, () -> exception.getMessage()); in testCmdSignProfile() 783 logger.info(exception, () -> exception.getMessage()); in testVerifyProfile() 803 logger.info(exception, () -> exception.getMessage()); in testCmdSignApp() 817 logger.info(exception, () -> exception.getMessage()); in testCmdVerifyApp() [all...] |