Remove unused method

This commit is contained in:
Paul Schaub 2022-08-25 11:41:41 +02:00
parent 3ec7b082be
commit da39d41df3
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -434,24 +434,6 @@ public class FileBasedCertificateDirectoryBackend implements PGPCertificateDirec
return new File(getBaseDirectory(), specialName); return new File(getBaseDirectory(), specialName);
} }
/**
* Calculate the file location for the key addressed using the given special name.
* For known special names, see {@link SpecialNames}.
*
* @param specialName special name (e.g. "trust-root")
* @return absolute key file location
*
* @throws BadNameException in case the given special name is not known
*/
public File getKeyFileBySpecialName(String specialName)
throws BadNameException {
if (!isSpecialName(specialName)) {
throw new BadNameException(String.format("%s is not a known special name", specialName));
}
return new File(getBaseDirectory(), specialName + ".key");
}
private boolean isFingerprint(String fingerprint) { private boolean isFingerprint(String fingerprint) {
return openPgpV4FingerprintPattern.matcher(fingerprint).matches(); return openPgpV4FingerprintPattern.matcher(fingerprint).matches();
} }