Top Description Methods
org.apache.sshd.client.auth.password

public Interface PasswordAuthenticationReporter

Imports
java.util.List, org.apache.sshd.client.session.ClientSession

Used to inform the about the progress of a password authentication
Author
Apache MINA SSHD Project
See Also
RFC-4252 section 8

Method Summary

Modifier and TypeMethod and Description
public default void
signalAuthenticationAttempt(ClientSession session, String
The requesting service name
service
,
String
The password being attempted
oldPassword
,
boolean
true if this is an attempt due to SSH_MSG_USERAUTH_PASSWD_CHANGEREQ
modified
,
String
The changed password
newPassword
)

public default void
signalAuthenticationExhausted(ClientSession session, String
The requesting service name
service
)

Signals end of passwords attempts and optionally switching to other authentication methods

public default void
signalAuthenticationFailure(ClientSession session, String
The requesting service name
service
,
String
The password that was attempted
password
,
boolean
true if some partial authentication success so far
partial
,
List<String>
The List of authentication methods that can continue
serverMethods
)

public default void
signalAuthenticationSuccess(ClientSession session, String
The requesting service name
service
,
String
The password that was attempted
password
)

Method Detail

signalAuthenticationAttemptback to summary
public default void signalAuthenticationAttempt(ClientSession session, String service, String oldPassword, boolean modified, String newPassword) throws Exception
Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

oldPassword:String

The password being attempted

modified:boolean

true if this is an attempt due to SSH_MSG_USERAUTH_PASSWD_CHANGEREQ

newPassword:String

The changed password

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalAuthenticationExhaustedback to summary
public default void signalAuthenticationExhausted(ClientSession session, String service) throws Exception

Signals end of passwords attempts and optionally switching to other authentication methods

Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalAuthenticationFailureback to summary
public default void signalAuthenticationFailure(ClientSession session, String service, String password, boolean partial, List<String> serverMethods) throws Exception
Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

password:String

The password that was attempted

partial:boolean

true if some partial authentication success so far

serverMethods:List<String>

The List of authentication methods that can continue

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalAuthenticationSuccessback to summary
public default void signalAuthenticationSuccess(ClientSession session, String service, String password) throws Exception
Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

password:String

The password that was attempted

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close