Jeff Thompson | fa30664 | 2013-06-17 15:06:57 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Alexander Afanasyev |
| 5 | * |
| 6 | * BSD license, See the LICENSE file for more information |
| 7 | * |
| 8 | * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 9 | */ |
| 10 | |
| 11 | #ifndef NDN_KEYCHAIN_OSX_H |
| 12 | #define NDN_KEYCHAIN_OSX_H |
| 13 | |
| 14 | #include "ndn.cxx/security/keychain.h" |
| 15 | |
| 16 | namespace ndn { |
| 17 | namespace keychain { |
| 18 | |
| 19 | class OSX : public Keychain |
| 20 | { |
| 21 | public: |
| 22 | OSX (); |
| 23 | |
| 24 | virtual |
| 25 | ~OSX (); |
| 26 | |
| 27 | virtual void |
| 28 | generateKeyPair (const Name &keyName); |
| 29 | |
| 30 | virtual void |
| 31 | deleteKeyPair (const Name &keyName); |
| 32 | |
| 33 | virtual void |
| 34 | deletePublicKey (const Name &keyName); |
| 35 | |
| 36 | virtual Ptr<Blob> |
| 37 | getPublicKey (const Name &publicKeyName); |
| 38 | |
| 39 | private: |
| 40 | void *m_private; |
| 41 | }; |
| 42 | |
| 43 | } // keychain |
| 44 | } // ndn |
| 45 | |
| 46 | #endif // NDN_KEYCHAIN_OSX_H |