ShieldCert

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
)
val http = HttpClient(CIO) {
(ContentNegotiation) {
()
}
(Logging) {
logger = Logger
level = LogLevel
}
engine {
()
}
}
try {
val txt = http("https://tls-v1-.badssl.com:")()
(txt)
} catch (e: Exception) {
e()
}