Class ElytronFilePasswordProvider

  • All Implemented Interfaces:
    org.apache.sshd.common.config.keys.FilePasswordProvider

    public class ElytronFilePasswordProvider
    extends Object
    implements org.apache.sshd.common.config.keys.FilePasswordProvider
    An implementation of FilePasswordProvider which can provide the password to decrypt a private key using a CredentialSource or Credential
    Author:
    Ashley Abdel-Sayed
    • Constructor Detail

      • ElytronFilePasswordProvider

        public ElytronFilePasswordProvider​(org.wildfly.common.function.ExceptionSupplier<CredentialSource,​XMLStreamException> credentialSourceSupplier)
      • ElytronFilePasswordProvider

        public ElytronFilePasswordProvider​(Credential credential)
    • Method Detail

      • getPassword

        public String getPassword​(org.apache.sshd.common.session.SessionContext session,
                                  org.apache.sshd.common.NamedResource resourceKey,
                                  int retryIndex)
                           throws IOException
        Specified by:
        getPassword in interface org.apache.sshd.common.config.keys.FilePasswordProvider
        Throws:
        IOException