1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- @protocol CCCertificateDelegate <NSObject>
- @optional - (void)trustedCerticateAccepted;
- @optional - (void)trustedCerticateDenied;
- @end
- @interface CCCertificate : NSObject
- @property (weak) id<CCCertificateDelegate> delegate;
- + (id)sharedManager;
- - (BOOL)checkTrustedChallenge:(NSURLAuthenticationChallenge *)challenge;
- - (BOOL)acceptCertificate;
- - (void)saveCertificate:(SecTrustRef) trust withName:(NSString *) certName;
- - (void)presentViewControllerCertificateWithAccount:(NSString *)account viewController:(UIViewController *)viewController delegate:(id)delegate;
- @end
|