Return extra values for select sign key call

This commit is contained in:
Vincent Breitmoser
2018-04-02 22:32:30 +02:00
parent b75cd19a4f
commit 8858dd5c3b
3 changed files with 43 additions and 18 deletions

View File

@@ -92,6 +92,16 @@ public class CachedPublicKeyRing extends KeyRing {
}
}
public long getCreationTime() throws PgpKeyNotFoundException {
try {
Object data = mKeyRepository.getGenericData(mUri,
KeychainContract.KeyRings.CREATION, KeyRepository.FIELD_TYPE_INTEGER);
return (long) data;
} catch (KeyWritableRepository.NotFoundException e) {
throw new PgpKeyNotFoundException(e);
}
}
@Override
public String getPrimaryUserId() throws PgpKeyNotFoundException {
try {