Home
last modified time | relevance | path

Searched refs:privateKey (Results 1 – 4 of 4) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/signer/
DLocalSigner.java49 private final PrivateKey privateKey; field in LocalSigner
62 public LocalSigner(PrivateKey privateKey, List<X509Certificate> certificates) { in LocalSigner() argument
63 this.privateKey = privateKey; in LocalSigner()
80 signature.initSign(privateKey); in getSignature()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/cert/
DCertTools.java216 …public static ContentSigner createFixedContentSigner(PrivateKey privateKey, String signAlgorithm) { in createFixedContentSigner() argument
220 if (privateKey instanceof ECPrivateKey && signAlgorithm.contains("RSA")) { in createFixedContentSigner()
223 if (privateKey instanceof RSAPrivateKey && signAlgorithm.contains(ECC)) { in createFixedContentSigner()
231 return jcaContentSignerBuilder.build(privateKey); in createFixedContentSigner()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/test/java/com/ohos/hapsigntool/
DProfileTest.java141 PrivateKey privateKey = KeyPairTools.stringToPrivateKey(KeyPairTools.ECC, PRIVATE_KEY_STR); in testProfile() local
142 ISigner signer = new LocalSigner(privateKey, adapter.getSignCertChain()); in testProfile()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/keystore/
DKeyStoreHelper.java188 PrivateKey privateKey = loadPrivateKey(alias, certPwd); in loadKeyPair() local
189 return new KeyPair(certificates.get(0).getPublicKey(), privateKey); in loadKeyPair()