Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Certificates demo #68

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add RequiresApi
  • Loading branch information
AdamVe committed Jul 29, 2022
commit 4c56de4709a8567fe601bc06c5f93ea79827baef
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import android.webkit.ClientCertRequest
import android.webkit.SslErrorHandler
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.annotation.RequiresApi
import androidx.lifecycle.viewModelScope
import com.yubico.yubikit.android.app.R
import com.yubico.yubikit.android.app.ui.getSecret
@@ -21,6 +22,7 @@ import kotlinx.coroutines.launch
import java.security.KeyStore
import java.security.cert.X509Certificate

@RequiresApi(21)
class DemoWebViewClient(private val viewModel: ClientCertificatesViewModel) :
WebViewClient() {