[android] Update README with new methods for private keys.

This commit is contained in:
kubasz 2019-10-22 21:36:02 +02:00
parent 39c382a259
commit 63f094b14a

View file

@ -20,8 +20,18 @@ dependencies {
```kotlin
import io.github.wulkanowy.signer.android.signContent
import io.github.wulkanowy.signer.android.getPrivateKeyFromCert
// sign content using PFX certificate and API password
val signed = signContent(password, certificate, content)
// sign content using private key extracted from PFX
val signed = signContent(key, content)
// extract private key from PFX
// using a once generated private key is about 250x faster
// than using the PFX each time
val privateKey = getPrivateKeyFromCert(password, certificate)
```
## Tests