shieldcert

Enhances application communication security using an SDK requiring account and API credentials, featuring dependency integration, HTTP client protection, and detailed logging capabilities.

Android JVMKotlin/Native
GitHub stars0
Authorsshieldcert
Dependents0
LicenseApache License 2.0
Creation date12 months ago

Last activity12 months ago
Latest release0.2.0 (10 months ago)

ShieldCert

Maven Central

ShieldCert is a library that helps you protect your application's communications.

⚠️ Important: This SDK requires a valid ShieldCert account and API credentials. Without a ShieldCert backend subscription, the SDK cannot be used.


Documentation

👉 Full documentation is available at docs.shieldcert.com.


Usage

Add the dependency from Maven Central:

dependencies {
    implementation("com.shieldcert:core:0.1.0")
}

val config = ShieldCertConfig(
    publicKey = "-----BEGIN PUBLIC KEY-----.......-----END PUBLIC KEY-----\n",
    apiKey = "API_KEY",
    expiredTimeout = 60.toDuration(DurationUnit.MINUTES)
)

ShieldCert.initSDK(
    application, //APLICATION/CONTEXT/ACTIVITY
    config
)


// Protect 

val http = HttpClient(CIO) {
    install(ContentNegotiation) {
        json()
    }
    install(Logging) {
        logger = Logger.ANDROID
        level = LogLevel.HEADERS
    }
    engine {
        sslEngine()
    }
}
try {
    val txt = http.get("https://tls-v1-2.badssl.com:1012").bodyAsText()
    println(txt)
} catch (e: Exception) {
    e.printStackTrace()
}
Android JVMKotlin/Native
GitHub stars0
Authorsshieldcert
Dependents0
LicenseApache License 2.0
Creation date12 months ago

Last activity12 months ago
Latest release0.2.0 (10 months ago)

ShieldCert

Maven Central

ShieldCert is a library that helps you protect your application's communications.

⚠️ Important: This SDK requires a valid ShieldCert account and API credentials. Without a ShieldCert backend subscription, the SDK cannot be used.


Documentation

👉 Full documentation is available at docs.shieldcert.com.


Usage

Add the dependency from Maven Central:

dependencies {
    implementation("com.shieldcert:core:0.1.0")
}

val config = ShieldCertConfig(
    publicKey = "-----BEGIN PUBLIC KEY-----.......-----END PUBLIC KEY-----\n",
    apiKey = "API_KEY",
    expiredTimeout = 60.toDuration(DurationUnit.MINUTES)
)

ShieldCert.initSDK(
    application, //APLICATION/CONTEXT/ACTIVITY
    config
)


// Protect 

val http = HttpClient(CIO) {
    install(ContentNegotiation) {
        json()
    }
    install(Logging) {
        logger = Logger.ANDROID
        level = LogLevel.HEADERS
    }
    engine {
        sslEngine()
    }
}
try {
    val txt = http.get("https://tls-v1-2.badssl.com:1012").bodyAsText()
    println(txt)
} catch (e: Exception) {
    e.printStackTrace()
}