Use appropiate getter for authentication public key
This commit is contained in:
parent
65d2f37324
commit
e251c56e90
|
@ -363,7 +363,7 @@ public class SshAuthenticationService extends Service {
|
||||||
throws PgpKeyNotFoundException, KeyRepository.NotFoundException {
|
throws PgpKeyNotFoundException, KeyRepository.NotFoundException {
|
||||||
KeyRepository keyRepository = KeyRepository.create(getApplicationContext());
|
KeyRepository keyRepository = KeyRepository.create(getApplicationContext());
|
||||||
long authSubKeyId = keyRepository.getCachedPublicKeyRing(masterKeyId)
|
long authSubKeyId = keyRepository.getCachedPublicKeyRing(masterKeyId)
|
||||||
.getSecretAuthenticationId();
|
.getAuthenticationId();
|
||||||
return keyRepository.getCanonicalizedPublicKeyRing(masterKeyId)
|
return keyRepository.getCanonicalizedPublicKeyRing(masterKeyId)
|
||||||
.getPublicKey(authSubKeyId);
|
.getPublicKey(authSubKeyId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue