#include <XSECCryptoKey.hpp>
Inheritance diagram for XSECCryptoKey:
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.
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_SYMMETRIC } |
Key types understood by the library. More... | |
Public Member Functions | |
Constructors and Destructors | |
XSECCryptoKey () | |
Constructor. | |
virtual | ~XSECCryptoKey () |
Destructor. | |
Interface classes | |
virtual KeyType | getKeyType () |
Returns the type of this key. | |
virtual const XMLCh * | getProviderName ()=0 |
Returns a string that identifies the crypto owner of this library. | |
virtual XSECCryptoKey * | clone ()=0 |
Clone the key. |
|
Key types understood by the library. This type defines the list of key types that the library understands. |
|
Constructor.
|
|
Destructor. Implementations must ensure that the held key is properly destroyed (overwritten) when key objects are deleted. |
|
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, OpenSSLCryptoSymmetricKey, WinCAPICryptoKeyDSA, WinCAPICryptoKeyHMAC, WinCAPICryptoKeyRSA, WinCAPICryptoSymmetricKey, XSECCryptoKeyDSA, XSECCryptoKeyHMAC, XSECCryptoKeyRSA, and XSECCryptoSymmetricKey. |
|
Returns the type of this key.
Reimplemented in OpenSSLCryptoKeyDSA, OpenSSLCryptoKeyHMAC, OpenSSLCryptoKeyRSA, WinCAPICryptoKeyDSA, WinCAPICryptoKeyHMAC, WinCAPICryptoKeyRSA, XSECCryptoKeyDSA, XSECCryptoKeyHMAC, XSECCryptoKeyRSA, and XSECCryptoSymmetricKey. |
|
Returns a string that identifies the crypto owner of this library.
Implemented in OpenSSLCryptoKeyDSA, OpenSSLCryptoKeyHMAC, OpenSSLCryptoKeyRSA, OpenSSLCryptoSymmetricKey, WinCAPICryptoKeyDSA, WinCAPICryptoKeyHMAC, WinCAPICryptoKeyRSA, WinCAPICryptoSymmetricKey, and XSECCryptoSymmetricKey. |