libcryptosec
NetscapeSPKI.h
Go to the documentation of this file.
1 #ifndef NETSCAPESPKI_H_
2 #define NETSCAPESPKI_H_
3 
4 #include <openssl/x509.h>
5 
6 #include <string>
7 
8 #include "RSAPublicKey.h"
9 #include "DSAPublicKey.h"
10 #include "PrivateKey.h"
11 #include "MessageDigest.h"
12 
14 
15 /*
16  * @ingroup SPKI
17  */
18 
26 {
27 public:
28 
34  NetscapeSPKI(NETSCAPE_SPKI *netscapeSPKI) throw (NetscapeSPKIException);
35 
41  NetscapeSPKI(std::string netscapeSPKIBase64) throw (EncodeException);
42 
46  virtual ~NetscapeSPKI();
47 
53  std::string getBase64Encoded() throw (EncodeException);
54 
63 
68  std::string getChallenge();
69 
77 
85  bool verify(PublicKey &publicKey);
86 
87  bool isSigned();
88 
89 protected:
90 
94  NETSCAPE_SPKI *netscapeSPKI;
95 };
96 
97 #endif /*NETSCAPESPKI_H_*/
bool isSigned()
Definition: NetscapeSPKI.cpp:101
Definition: PublicKey.h:19
bool verify()
Definition: NetscapeSPKI.cpp:84
PublicKey * getPublicKey()
Definition: NetscapeSPKI.cpp:45
Definition: NetscapeSPKIException.h:6
Implementa o padrão NetscapeSPKI. Este é uma estrutura que contém: estrutura SPKAC (chave pública e d...
Definition: NetscapeSPKI.h:25
Definition: AsymmetricKeyException.h:6
std::string getBase64Encoded()
Definition: NetscapeSPKI.cpp:31
Definition: EncodeException.h:8
std::string getChallenge()
Definition: NetscapeSPKI.cpp:67
virtual ~NetscapeSPKI()
Definition: NetscapeSPKI.cpp:22
NetscapeSPKI(NETSCAPE_SPKI *netscapeSPKI)
Definition: NetscapeSPKI.cpp:3
NETSCAPE_SPKI * netscapeSPKI
Definition: NetscapeSPKI.h:94