This commit is contained in:
Paul Schaub 2022-08-27 13:38:50 +02:00
parent 27ae686d52
commit d8a060d0df

View file

@ -34,16 +34,16 @@ public class Get implements Runnable {
paramLabel = "IDENTIFIER", paramLabel = "IDENTIFIER",
arity = "1" arity = "1"
) )
String identifer; String identifier;
@Override @Override
public void run() { public void run() {
try { try {
KeyMaterial record; KeyMaterial record;
if (SpecialNames.lookupSpecialName(identifer) != null) { if (SpecialNames.lookupSpecialName(identifier) != null) {
record = PGPCertDCli.getCertificateDirectory().getBySpecialName(identifer); record = PGPCertDCli.getCertificateDirectory().getBySpecialName(identifier);
} else { } else {
record = PGPCertDCli.getCertificateDirectory().getByFingerprint(identifer.toLowerCase()); record = PGPCertDCli.getCertificateDirectory().getByFingerprint(identifier.toLowerCase());
} }
if (record == null) { if (record == null) {
return; return;