diff --git a/src/Renci.SshNet/ClientAuthentication.cs b/src/Renci.SshNet/ClientAuthentication.cs
index 2efadc5a8..4b734b4c8 100644
--- a/src/Renci.SshNet/ClientAuthentication.cs
+++ b/src/Renci.SshNet/ClientAuthentication.cs
@@ -6,6 +6,34 @@ namespace Renci.SshNet
{
internal class ClientAuthentication : IClientAuthentication
{
+ private readonly int _partialSuccessLimit;
+
+ ///
+ /// Initializes a new instance.
+ ///
+ /// The number of times an authentication attempt with any given can result in before it is disregarded.
+ /// is less than one.
+ public ClientAuthentication(int partialSuccessLimit)
+ {
+ if (partialSuccessLimit < 1)
+ throw new ArgumentOutOfRangeException("partialSuccessLimit", "Cannot be less than one.");
+
+ _partialSuccessLimit = partialSuccessLimit;
+ }
+
+ ///
+ /// Gets the number of times an authentication attempt with any given can
+ /// result in before it is disregarded.
+ ///
+ ///
+ /// The number of times an authentication attempt with any given can result
+ /// in before it is disregarded.
+ ///
+ internal int PartialSuccessLimit
+ {
+ get { return _partialSuccessLimit; }
+ }
+
public void Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
{
if (connectionInfo == null)