Skip to content

Commit c05abe8

Browse files
committed
Fix type names and passphrase requirement
1 parent 72be473 commit c05abe8

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace LibGit2Sharp
66
/// <summary>
77
/// Class that holds SSH username with key credentials for remote repository access.
88
/// </summary>
9-
public sealed class SshUserKeyCredentials : Credentials
9+
public sealed class SshKeyCredentials : Credentials
1010
{
1111
/// <summary>
1212
/// Callback to acquire a credential object.
@@ -20,11 +20,6 @@ protected internal override int GitCredentialHandler(out IntPtr cred)
2020
throw new InvalidOperationException("SshUserKeyCredentials contains a null Username.");
2121
}
2222

23-
if (Passphrase == null)
24-
{
25-
throw new InvalidOperationException("SshUserKeyCredentials contains a null Passphrase.");
26-
}
27-
2823
if (PrivateKey == null)
2924
{
3025
throw new InvalidOperationException("SshUserKeyCredentials contains a null PrivateKey.");

LibGit2Sharp/SshUserKeyMemoryCredentials.cs renamed to LibGit2Sharp/SshKeyMemoryCredentials.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace LibGit2Sharp
66
/// <summary>
77
/// Class that holds SSH username with in-memory key credentials for remote repository access.
88
/// </summary>
9-
public sealed class SshUserKeyMemoryCredentials : Credentials
9+
public sealed class SshKeyMemoryCredentials : Credentials
1010
{
1111
/// <summary>
1212
/// Callback to acquire a credential object.
@@ -20,11 +20,6 @@ protected internal override int GitCredentialHandler(out IntPtr cred)
2020
throw new InvalidOperationException("SshUserKeyMemoryCredentials contains a null Username.");
2121
}
2222

23-
if (Passphrase == null)
24-
{
25-
throw new InvalidOperationException("SshUserKeyMemoryCredentials contains a null Passphrase.");
26-
}
27-
2823
if (PrivateKey == null)
2924
{
3025
throw new InvalidOperationException("SshUserKeyMemoryCredentials contains a null PrivateKey.");

0 commit comments

Comments
 (0)