uonet-request-signer/android
2019-11-01 22:07:42 +01:00
..
app Publish signer-android to bintray 2019-10-22 23:24:45 +02:00
gradle/wrapper Add android implementation 2019-10-21 22:44:22 +02:00
lib [android] Version 0.1.1 2019-11-01 22:07:42 +01:00
.gitignore Add android implementation 2019-10-21 22:44:22 +02:00
build.gradle Publish signer-android to bintray 2019-10-22 23:24:45 +02:00
gradle.properties Add android implementation 2019-10-21 22:44:22 +02:00
gradlew Add android implementation 2019-10-21 22:44:22 +02:00
gradlew.bat Add android implementation 2019-10-21 22:44:22 +02:00
README.md [android] Version 0.1.1 2019-11-01 22:07:42 +01:00
settings.gradle Add android implementation 2019-10-21 22:44:22 +02:00

Uonet+ request signer for android

Bintray

Instalation

allprojects {
    repositories {
        maven { url "https://dl.bintray.com/wulkanowy/wulkanowy" }
    }
}

dependencies {
    implementation "io.github.wulkanowy:signer-android:0.1.1"
}

Usage

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

$ ./gradlew test