Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
QC_SSLPrivateKey.dox.h
1 namespace Qore {
4 
5 class SSLPrivateKey {
6 
7 public:
9 
21  constructor(string pem, *string pass);
22 
23 public:
25 
34  constructor(binary der);
35 
36 public:
38 
40  copy();
41 
42 public:
44 
54 int getBitLength();
55 
56 public:
58 
71 hash getInfo();
72 
73 public:
75 
84 string getPEM();
85 
86 public:
88 
98 string getType();
99 
100 public:
102 
109 int getVersion();
110 };
111 };
int getVersion()
Returns a constant value of 1; do not use; only included for backwards-compatibility.
string getType()
Returns a string giving the algorithm used for the private key.
int getBitLength()
Returns the bit length of the private key.
copy()
Copying objects of this class is not supported, an exception will be thrown.
hash getInfo()
Returns a hash of all information for the private key.
binary binary()
Always returns an empty binary object (of zero length)
constructor(string pem, *string pass)
Creates the SSLPrivateKey object from the PEM-encoded text representation of the private key passed...
This class implements a container for private key data.
Definition: QC_SSLPrivateKey.dox.h:5
hash hash(object obj)
Returns a hash of an object's members.
string getPEM()
Returns a string in PEM format representing the private key.