File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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." ) ;
Original file line number Diff line number Diff 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." ) ;
You can’t perform that action at this time.
0 commit comments