The SSH authentication API library provides an interface to using an external authentication provider, such as OpenKeychain, in the SSH authentication layer.
For a basic rundown of the API design see the OpenPGP API library's README.md.
For a description of the supported methods see org.openintents.ssh.authentication.SshAuthenticationApi
Add this to your build.gradle:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.open-keychain.open-keychain:sshauthentication-api:v5.7.1'
}