Class PGPPublicKeyFileWatcher


  • public class PGPPublicKeyFileWatcher
    extends org.apache.sshd.common.util.io.ModifiableFileWatcher
    TODO Add javadoc
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.atomic.AtomicReference<org.c02e.jpgpj.Key> keyHolder  
      • Fields inherited from class org.apache.sshd.common.util.io.ModifiableFileWatcher

        options, STRICTLY_PROHIBITED_FILE_PERMISSION
      • Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        log
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.c02e.jpgpj.Key loadPublicKey​(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resourceKey, org.apache.sshd.common.config.keys.FilePasswordProvider passwordProvider)  
      protected org.c02e.jpgpj.Key reloadPublicKey​(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.util.io.resource.IoResource<?> resourceKey, org.apache.sshd.common.config.keys.FilePasswordProvider passwordProvider)  
      • Methods inherited from class org.apache.sshd.common.util.io.ModifiableFileWatcher

        checkReloadRequired, exists, getPath, lastModified, resetReloadAttributes, size, toPathResource, toPathResource, toString, updateReloadAttributes, validateStrictConfigFilePermissions
      • Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • keyHolder

        protected final java.util.concurrent.atomic.AtomicReference<org.c02e.jpgpj.Key> keyHolder
    • Constructor Detail

      • PGPPublicKeyFileWatcher

        public PGPPublicKeyFileWatcher​(java.nio.file.Path file)
      • PGPPublicKeyFileWatcher

        public PGPPublicKeyFileWatcher​(java.nio.file.Path file,
                                       java.nio.file.LinkOption... options)
    • Method Detail

      • loadPublicKey

        public org.c02e.jpgpj.Key loadPublicKey​(org.apache.sshd.common.session.SessionContext session,
                                                org.apache.sshd.common.NamedResource resourceKey,
                                                org.apache.sshd.common.config.keys.FilePasswordProvider passwordProvider)
                                         throws java.io.IOException,
                                                java.security.GeneralSecurityException,
                                                org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
        org.bouncycastle.openpgp.PGPException
      • reloadPublicKey

        protected org.c02e.jpgpj.Key reloadPublicKey​(org.apache.sshd.common.session.SessionContext session,
                                                     org.apache.sshd.common.util.io.resource.IoResource<?> resourceKey,
                                                     org.apache.sshd.common.config.keys.FilePasswordProvider passwordProvider)
                                              throws java.io.IOException,
                                                     java.security.GeneralSecurityException,
                                                     org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
        org.bouncycastle.openpgp.PGPException