hwsecurity-ssh / de.cotech.hw.ssh / SecurityKeySshAuthenticator / fromPublicKey /

fromPublicKey

open fun fromPublicKey(securityKeyAuthenticator: SecurityKeyAuthenticator): SecurityKeySshAuthenticator

This method creates a SecurityKeySshAuthenticator based on the authentication public key on the connectedsecurity key.

This method performs IO with the security token to retrieve the public key material. It must be calledfrom a background thread.

Throws

Name Summary
java.io.IOException If the public key cannot be retrieved from the security key.
java.security.NoSuchAlgorithmException If the public key uses an unsupported algorithm.