summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorLaurens Van Houtven <_@lvh.cc>2014-06-19 12:28:08 +0200
committerLaurens Van Houtven <_@lvh.cc>2014-06-19 12:28:08 +0200
commitbb503a306db2eed6c9b714f23992c444b65323a8 (patch)
tree0104d081afb2b4ec5c0fbb682367e0a4c88e34dd /doc/api
parent07051d3b186dc7b63807e0777f2d5321d66ee81a (diff)
downloadpyopenssl-bb503a306db2eed6c9b714f23992c444b65323a8.tar.gz
Use autodoc for PKCS12
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/crypto.rst55
1 files changed, 2 insertions, 53 deletions
diff --git a/doc/api/crypto.rst b/doc/api/crypto.rst
index 6dd6a43..949f9b2 100644
--- a/doc/api/crypto.rst
+++ b/doc/api/crypto.rst
@@ -240,59 +240,8 @@ PKCS7 objects have the following methods:
PKCS12 objects
--------------
-PKCS12 objects have the following methods:
-
-.. py:method:: PKCS12.export([passphrase=None][, iter=2048][, maciter=1])
-
- Returns a PKCS12 object as a string.
-
- The optional *passphrase* must be a string not a callback.
-
- See also the man page for the C function :py:func:`PKCS12_create`.
-
-
-.. py:method:: PKCS12.get_ca_certificates()
-
- Return CA certificates within the PKCS12 object as a tuple. Returns
- :py:const:`None` if no CA certificates are present.
-
-
-.. py:method:: PKCS12.get_certificate()
-
- Return certificate portion of the PKCS12 structure.
-
-
-.. py:method:: PKCS12.get_friendlyname()
-
- Return friendlyName portion of the PKCS12 structure.
-
-
-.. py:method:: PKCS12.get_privatekey()
-
- Return private key portion of the PKCS12 structure
-
-
-.. py:method:: PKCS12.set_ca_certificates(cacerts)
-
- Replace or set the CA certificates within the PKCS12 object with the sequence *cacerts*.
-
- Set *cacerts* to :py:const:`None` to remove all CA certificates.
-
-
-.. py:method:: PKCS12.set_certificate(cert)
-
- Replace or set the certificate portion of the PKCS12 structure.
-
-
-.. py:method:: PKCS12.set_friendlyname(name)
-
- Replace or set the friendlyName portion of the PKCS12 structure.
-
-
-.. py:method:: PKCS12.set_privatekey(pkey)
-
- Replace or set private key portion of the PKCS12 structure
-
+.. autoclass:: PKCS12
+ :members:
.. _openssl-509ext: