Try Hardware Security SDK in your app today.
Security Keys

PIV cards and Security Keys

Supports a wide range of Security Keys, such as the YubiKey 4 and 5 Series over USB. YubiKey 5 NFC and YubiKey NEO are also supported over NFC.

Certificate Handling

Automatic retrieval and usage of certificates stored on the security hardware.
PIV Certificate Chain

Integrates with Modern Android Libraries

Out-of-the-box integration with OkHttp 3.

Make Your App work with PIV

public class MainActivity extends AppCompatActivity implements SmartcardDialogFragment.SmartcardDialogCallback<PivSecurityKey> {

    private void showSmartcardDialog() {
        SmartcardDialogOptions options = SmartcardDialogOptions.builder()
                //.setPinLength(4) // smartcards with a fixed PIN and PUK length improve the UX

        smartcardDialogFragment = SmartcardDialogFactory.newPivInstance(options);;

    public void onSmartcardDialogSecurityKeyDiscovered(PivSecurityKey securityKey, PinProvider pinProvider) throws IOException {
        SecurityKeyTlsClientCertificateAuthenticator clientCertificateAuthenticator =
        SSLContext sslContext = clientCertificateAuthenticator.buildInitializedSslContext();

        // connection with OkHttp
        OkHttpClient httpClient = new OkHttpClient.Builder()
        Request request = new Request.Builder()
        Response response = httpClient.newCall(request).execute();
Complete Guide Full List of Supported Hardware

Developer Documentation

Learn about the features of the Hardware Security SDK in detail. The guides, API reference, and example projects will help you get up and running in no time.