Class PGPPublicKeyFileWatcher

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.io.ModifiableFileWatcher
org.apache.sshd.openpgp.PGPPublicKeyFileWatcher

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

    Fields
    Modifier and Type
    Field
    Description
    protected final AtomicReference<org.c02e.jpgpj.Key>
     

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    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 Details

    • keyHolder

      protected final AtomicReference<org.c02e.jpgpj.Key> keyHolder
  • Constructor Details

    • PGPPublicKeyFileWatcher

      public PGPPublicKeyFileWatcher(Path file)
    • PGPPublicKeyFileWatcher

      public PGPPublicKeyFileWatcher(Path file, LinkOption... options)
  • Method Details

    • 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 IOException, GeneralSecurityException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      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 IOException, GeneralSecurityException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      GeneralSecurityException
      org.bouncycastle.openpgp.PGPException