Package pgp.cert_d.backend
Class FileBasedCertificateDirectoryBackend.FilenameResolver
- java.lang.Object
-
- pgp.cert_d.backend.FileBasedCertificateDirectoryBackend.FilenameResolver
-
- Enclosing class:
- FileBasedCertificateDirectoryBackend
public static class FileBasedCertificateDirectoryBackend.FilenameResolver extends java.lang.ObjectClass to resolve file names from certificate fingerprints / special names.
-
-
Constructor Summary
Constructors Constructor Description FilenameResolver(java.io.File baseDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetBaseDirectory()java.io.FilegetCertFileByFingerprint(java.lang.String fingerprint)Calculate the file location for the certificate addressed by the given lowercase hexadecimal OpenPGP fingerprint.java.io.FilegetCertFileBySpecialName(java.lang.String specialName)Calculate the file location for the certification addressed using the given special name.
-
-
-
Method Detail
-
getBaseDirectory
public java.io.File getBaseDirectory()
-
getCertFileByFingerprint
public java.io.File getCertFileByFingerprint(java.lang.String fingerprint) throws pgp.certificate_store.exception.BadNameExceptionCalculate the file location for the certificate addressed by the given lowercase hexadecimal OpenPGP fingerprint.- Parameters:
fingerprint- fingerprint- Returns:
- absolute certificate file location
- Throws:
pgp.certificate_store.exception.BadNameException- if the given fingerprint string is not a fingerprint
-
getCertFileBySpecialName
public java.io.File getCertFileBySpecialName(java.lang.String specialName) throws pgp.certificate_store.exception.BadNameExceptionCalculate the file location for the certification addressed using the given special name. For known special names, seeSpecialNames.- Parameters:
specialName- special name (e.g. "trust-root")- Returns:
- absolute certificate file location
- Throws:
pgp.certificate_store.exception.BadNameException- in case the given special name is not known
-
-