#include <XSECCryptoX509.hpp>
Inheritance diagram for XSECCryptoX509:
The library uses classes derived from this to process X509 Certificates.
Strictly speaking, this class is not required (and is completely Optional. However it is used by XSECKeyInfoResolverDefault to extract a key from a certificate in cases where the caller is not worried about the trust level of the certificate.
Public Member Functions | |
Constructors and Destructors | |
XSECCryptoX509 () | |
virtual | ~XSECCryptoX509 () |
Key Interface methods | |
virtual XSECCryptoKey::KeyType | getPublicKeyType ()=0 |
Return the type of the key stored in the certificate. | |
virtual XSECCryptoKey * | clonePublicKey ()=0 |
Get a copy of the public key. | |
virtual const XMLCh * | getProviderName ()=0 |
Returns a string that identifies the crypto owner of this library. | |
Load and Get the certificate | |
virtual void | loadX509Base64Bin (const char *buf, unsigned int len)=0 |
Load a certificate into the object. | |
void | loadX509PEM (const char *buf, unsigned int len=0) |
Load a PEM encoded certificate into the object. | |
virtual safeBuffer & | getDEREncodingSB (void)=0 |
Get a Base64 DER encoded copy of the certificate. |
|
|
|
|
|
Get a copy of the public key. The implementation should extract the key from the certificate, create an instance of the appropriate key type, and return it. Implemented in OpenSSLCryptoX509, and WinCAPICryptoX509. |
|
Get a Base64 DER encoded copy of the certificate.
Implemented in OpenSSLCryptoX509, and WinCAPICryptoX509. |
|
Returns a string that identifies the crypto owner of this library.
Implemented in OpenSSLCryptoX509, and WinCAPICryptoX509. |
|
Return the type of the key stored in the certificate. The implementation is expected to extract the key from the certificate and determine the type. Implemented in OpenSSLCryptoX509, and WinCAPICryptoX509. |
|
Load a certificate into the object. Take a base64 DER encoded certificate and load.
Implemented in OpenSSLCryptoX509, and WinCAPICryptoX509. |
|
Load a PEM encoded certificate into the object. Take a PEM encoded certificate and load.
|