Goldstein Lyor created SSHD-613:
-----------------------------------

             Summary: Support a 'callback' method for session password 
identities
                 Key: SSHD-613
                 URL: https://issues.apache.org/jira/browse/SSHD-613
             Project: MINA SSHD
          Issue Type: Improvement
            Reporter: Goldstein Lyor
            Assignee: Goldstein Lyor
            Priority: Minor


Public key identities can be configured by using a _KeyPairProvider_ as well as 
calls to the _addPublicKeyIdentity_. This enables the user to implement a 
lazy-load or any other code for providing the keys, since the _loadKeys_ method 
is invoked only when the keys are needed. We should do the same for passwords - 
i.e., provide a _loadPasswords_ method that can be called to do the same.

The rationale for this is that eventually the user has to implement an 
_Iterator_ for either the passwords or the keys. This iterator can obtain its 
data from whatever source the user wants, and it is invoked only when the 
specific identity type is needed (password or key). This way, instead of 
calling _addPassword/PublicKeyIdentity_, the user can wait for a 'callback' 
from the session when it needs one of the identities.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to