Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: db555a1223
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (22 sloc) 1.058 kb
// CK2SSHCredential.h
// Sandvox
// Created by Mike on 02/09/2011.
// Copyright 2011 Karelia Software. All rights reserved.
#import <Cocoa/Cocoa.h>
@interface NSURLCredential (CK2SSHCredential)
// Indicates that authentication should be public key, with the help of ssh-agent
// SANDBOXING: SSH-Agent isn't available to sandboxed apps, so this will fail. Apple consider SSH keys to be something user should explicitly grant access to.
+ (NSURLCredential *)ck2_SSHAgentCredentialWithUser:(NSString *)user;
// Authenticate using particular public & private key files
+ (NSURLCredential *)ck2_credentialWithUser:(NSString *)user
publicKeyURL:(NSURL *)publicKey
privateKeyURL:(NSURL *)privateKey;
+ (NSURLCredential *)ck2_credentialWithUser:(NSString *)user service:(NSString *)service;
- (BOOL)ck2_isPublicKeyCredential;
// These will be nil when using ssh-agent
- (NSURL *)ck2_publicKeyURL;
- (NSURL *)ck2_privateKeyURL;
Jump to Line
Something went wrong with that request. Please try again.