#include <XSECCryptoKey.hpp>
Inheritance diagram for XSECCryptoKey:
Public Types | |
enum | KeyType { KEY_NONE, KEY_DSA_PUBLIC, KEY_DSA_PRIVATE, KEY_DSA_PAIR, KEY_RSA_PUBLIC, KEY_RSA_PRIVATE, KEY_RSA_PAIR, KEY_HMAC } |
Key types understood by the library. More... | |
Public Methods | |
Constructors and Destructors | |
XSECCryptoKey () | |
Constructor. More... | |
virtual | ~XSECCryptoKey () |
Destructor. More... | |
Interface classes | |
virtual KeyType | getKeyType () |
Returns the type of this key. More... | |
virtual XSECCryptoKey * | clone ()=0 |
Clone the key. More... |
All keys used for signing and encrypting are derived from this base interface class. There are no methods for performing cryptographic functions, as this is a base class used to allow the library to pass key material to various objects without knowing how to directly use it.
|
Key types understood by the library.
This type defines the list of key types that the library understands. |
|
Constructor.
|
|
Destructor.
|
|
Clone the key.
All keys need to be able to copy themselves and return a pointer to the copy. This allows the library to duplicate keys. Implemented in OpenSSLCryptoKeyDSA, OpenSSLCryptoKeyHMAC, OpenSSLCryptoKeyRSA, XSECCryptoKeyDSA, XSECCryptoKeyHMAC, and XSECCryptoKeyRSA. |
|
Returns the type of this key.
Reimplemented in OpenSSLCryptoKeyDSA, OpenSSLCryptoKeyHMAC, OpenSSLCryptoKeyRSA, XSECCryptoKeyDSA, XSECCryptoKeyHMAC, and XSECCryptoKeyRSA. |