Interface ClientAuthenticationManager

    • Method Detail

      • addPasswordIdentity

        void addPasswordIdentity​(java.lang.String password)
        Parameters:
        password - Password to be added - may not be null/empty. Note: this password is in addition to whatever passwords are available via the PasswordIdentityProvider (if any)
      • removePasswordIdentity

        java.lang.String removePasswordIdentity​(java.lang.String password)
        Parameters:
        password - The password to remove - ignored if null/empty
        Returns:
        The removed password - same one that was added via addPasswordIdentity(String) - or null if no match found
      • addPublicKeyIdentity

        void addPublicKeyIdentity​(java.security.KeyPair key)
        Parameters:
        key - The KeyPair to add - may not be null Note: this key is in addition to whatever keys are available via the KeyIdentityProvider (if any)
      • removePublicKeyIdentity

        java.security.KeyPair removePublicKeyIdentity​(java.security.KeyPair kp)
        Parameters:
        kp - The KeyPair to remove - ignored if null
        Returns:
        The removed KeyPair - same one that was added via addPublicKeyIdentity(KeyPair) - or null if no match found
      • getServerKeyVerifier

        ServerKeyVerifier getServerKeyVerifier()
        Retrieve the server key verifier to be used to check the key when connecting to an SSH server.
        Returns:
        the ServerKeyVerifier to use - never null
      • setServerKeyVerifier

        void setServerKeyVerifier​(ServerKeyVerifier serverKeyVerifier)
      • getUserInteraction

        UserInteraction getUserInteraction()
        Returns:
        A UserInteraction object to communicate with the user (may be null to indicate that no such communication is allowed)
      • setUserInteraction

        void setUserInteraction​(UserInteraction userInteraction)