Class FileBasedCertificateDirectoryBackend.FilenameResolver

  • Enclosing class:
    FileBasedCertificateDirectoryBackend

    public static class FileBasedCertificateDirectoryBackend.FilenameResolver
    extends java.lang.Object
    Class 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.File getBaseDirectory()  
      java.io.File getCertFileByFingerprint​(java.lang.String fingerprint)
      Calculate the file location for the certificate addressed by the given lowercase hexadecimal OpenPGP fingerprint.
      java.io.File getCertFileBySpecialName​(java.lang.String specialName)
      Calculate the file location for the certification addressed using the given special name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilenameResolver

        public FilenameResolver​(java.io.File baseDirectory)
    • Method Detail

      • getBaseDirectory

        public java.io.File getBaseDirectory()
      • getCertFileByFingerprint

        public java.io.File getCertFileByFingerprint​(java.lang.String fingerprint)
                                              throws pgp.certificate_store.exception.BadNameException
        Calculate 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.BadNameException
        Calculate the file location for the certification addressed using the given special name. For known special names, see SpecialNames.
        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