]> git.saurik.com Git - apple/security.git/blobdiff - Keychain/Identity.h
Security-163.tar.gz
[apple/security.git] / Keychain / Identity.h
index 8e1acdd660d6a9a55222bc1ce3b8bed2dbbf0f5c..107b6547faac7a8f73075e982871572d91dcf947 100644 (file)
@@ -35,16 +35,19 @@ class Identity : public SecCFObject
 {
     NOCOPY(Identity)
 public:
-    Identity(const RefPointer<KeyItem> &privateKey,
-               const RefPointer<Certificate> &certificate);
-    virtual ~Identity();
+       SECCFFUNCTIONS(Identity, SecIdentityRef, errSecInvalidItemRef)
 
-    RefPointer<KeyItem> privateKey() const;
-       RefPointer<Certificate> certificate() const;
+    Identity(const SecPointer<KeyItem> &privateKey,
+               const SecPointer<Certificate> &certificate);
+    Identity(const StorageManager::KeychainList &keychains, const SecPointer<Certificate> &certificate);
+    virtual ~Identity() throw();
+
+    SecPointer<KeyItem> privateKey() const;
+       SecPointer<Certificate> certificate() const;
 
 private:
-    RefPointer<KeyItem> mPrivateKey;
-       RefPointer<Certificate> mCertificate;
+    SecPointer<KeyItem> mPrivateKey;
+       SecPointer<Certificate> mCertificate;
 };
 
 } // end namespace KeychainCore