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
OkHttp

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
                //.setPukLength(8)
                .build();

        smartcardDialogFragment = SmartcardDialogFactory.newPivInstance(options);
        smartcardDialogFragment.show(getSupportFragmentManager());
    }

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

        // connection with OkHttp
        OkHttpClient httpClient = new OkHttpClient.Builder()
                .sslSocketFactory(sslContext.getSocketFactory())
                .build();
        Request request = new Request.Builder()
                .url("https://tls.hwsecurity.dev")
                .build();
        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.