blob: 7daa06c239fe71de97a9b5d28735971d33ba14c2 [file] [log] [blame]
Alexander Afanasyev2d600f72013-11-21 18:20:37 -08001.. _Signature:
2
3Signature Class
4===============
5
6A 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
14Signature.clone Method
15----------------------
16
17Return 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
27An now object of a subclass of Signature which is a clone of this object.
28
29Sha256WithRsaSignature Class
30============================
31
32A 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
40Sha256WithRsaSignature Constructor
41----------------------------------
42
43Create a new Sha256WithRsaSignature object.
44
45:[C++]:
46
47.. code-block:: c++
48
49 Sha256WithRsaSignature();
50
51Sha256WithRsaSignature.clone Method
52-----------------------------------
53
54Return 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.