[640][app] 添加获取界面后的证书

This commit is contained in:
xinfengkun
2024-04-08 17:40:02 +08:00
parent 4e35d90a57
commit a6487c4966
2 changed files with 15 additions and 7 deletions

View File

@@ -27,6 +27,14 @@ object CallerCloudCertManager {
}
fun getDeviceCrtF(): String? {
return certProviderApi.getDeviceCrtF()
}
fun getRootCrtF(): String? {
return certProviderApi.getRootCrtF()
}
fun getDeviceCrtFDecode(): String? {
var crt = certProviderApi.getDeviceCrtF()
if (!crt.isNullOrEmpty()) {
crt = String(Base64.decode(crt, Base64.NO_WRAP), StandardCharsets.UTF_8)
@@ -34,7 +42,7 @@ object CallerCloudCertManager {
return crt
}
fun getRootCrtF(): String? {
fun getRootCrtFDecode(): String? {
var crt = certProviderApi.getRootCrtF()
if (!crt.isNullOrEmpty()) {
crt = String(Base64.decode(crt, Base64.NO_WRAP), StandardCharsets.UTF_8)