Alexander Afanasyev | 2d600f7 | 2013-11-21 18:20:37 -0800 | [diff] [blame] | 1 | .. _Signature: |
| 2 | |
| 3 | Signature Class |
| 4 | =============== |
| 5 | |
| 6 | A Signature is an abstract base class providing methods to work with the signature information in a Data packet. You must create an object of a subclass, for example Sha256WithRsaSignature. |
| 7 | |
| 8 | :[C++]: |
| 9 | Namespace: ``ndn`` |
| 10 | |
| 11 | :[Python]: |
| 12 | Module: ``pyndn`` |
| 13 | |
| 14 | Signature.clone Method |
| 15 | ---------------------- |
| 16 | |
| 17 | Return a pointer to a new Signature which is a copy of this signature. This is abstract, the subclass must implement it. |
| 18 | |
| 19 | :[C++]: |
| 20 | |
| 21 | .. code-block:: c++ |
| 22 | |
| 23 | virtual ptr_lib::shared_ptr<Signature> clone() const = 0; |
| 24 | |
| 25 | :Returns: |
| 26 | |
| 27 | An now object of a subclass of Signature which is a clone of this object. |
| 28 | |
| 29 | Sha256WithRsaSignature Class |
| 30 | ============================ |
| 31 | |
| 32 | A Sha256WithRsaSignature extends Signature and holds the signature bits and other info representing a SHA256-with-RSA signature in a data packet. |
| 33 | |
| 34 | :[C++]: |
| 35 | Namespace: ``ndn`` |
| 36 | |
| 37 | :[Python]: |
| 38 | Module: ``pyndn`` |
| 39 | |
| 40 | Sha256WithRsaSignature Constructor |
| 41 | ---------------------------------- |
| 42 | |
| 43 | Create a new Sha256WithRsaSignature object. |
| 44 | |
| 45 | :[C++]: |
| 46 | |
| 47 | .. code-block:: c++ |
| 48 | |
| 49 | Sha256WithRsaSignature(); |
| 50 | |
| 51 | Sha256WithRsaSignature.clone Method |
| 52 | ----------------------------------- |
| 53 | |
| 54 | Return a pointer to a new Sha256WithRsaSignature which is a copy of this signature. |
| 55 | |
| 56 | :[C++]: |
| 57 | |
| 58 | .. code-block:: c++ |
| 59 | |
| 60 | virtual ptr_lib::shared_ptr<Signature> clone() const; |
| 61 | |
| 62 | :Returns: |
| 63 | |
| 64 | A new Sha256WithRsaSignature object. |