hw-security / de.cotech.hw.standalone / SecurityKeySshAuthenticator / createFromCertificate


open static fun createFromCertificate(keyInteractor:SecurityKeyInteractor, pairedPinProvider:PairedPinProvider):SecurityKeySshAuthenticator

This method creates a SecurityKeySshAuthenticator based on the certificate stored on the security key. This method assumes that the certificate data on the security key contains an OpenSSH public key.

This method performs IO with the security token to retrieve the certificate. It should be called from a background thread.


IOException - If the public key cannot be retrieved from the security key.

NoSuchAlgorithmException - If the public key uses an unsupoorted algorithm.