#include <xmltooling/security/SecurityHelper.h>
Static Public Member Functions | |
static const char * | guessEncodingFormat (const char *pathname) |
Access a file to try and guess the encoding format used. | |
static XSECCryptoKey * | loadKeyFromFile (const char *pathname, const char *format=NULL, const char *password=NULL) |
Loads a private key from a local file. | |
static std::vector< XSECCryptoX509 * >::size_type | loadCertificatesFromFile (std::vector< XSECCryptoX509 * > &certs, const char *pathname, const char *format=NULL, const char *password=NULL) |
Loads certificate(s) from a local file. | |
static std::vector< XSECCryptoX509CRL * >::size_type | loadCRLsFromFile (std::vector< XSECCryptoX509CRL * > &crls, const char *pathname, const char *format=NULL) |
Loads CRL(s) from a local file. | |
static XSECCryptoKey * | loadKeyFromURL (SOAPTransport &transport, const char *backing, const char *format=NULL, const char *password=NULL) |
Loads a private key from a URL. | |
static std::vector< XSECCryptoX509 * >::size_type | loadCertificatesFromURL (std::vector< XSECCryptoX509 * > &certs, SOAPTransport &transport, const char *backing, const char *format=NULL, const char *password=NULL) |
Loads certificate(s) from a URL. | |
static std::vector< XSECCryptoX509CRL * >::size_type | loadCRLsFromURL (std::vector< XSECCryptoX509CRL * > &crls, SOAPTransport &transport, const char *backing, const char *format=NULL) |
Loads CRL(s) from a URL. | |
static bool | matches (const XSECCryptoKey &key1, const XSECCryptoKey &key2) |
Compares two keys for equality. | |
static std::string | doHash (const char *hashAlg, const char *buf, unsigned long buflen, bool toHex=true) |
Performs a hash operation over the supplied data. | |
static std::string | getDEREncoding (const Credential &cred, const char *hash, bool nowrap=true) |
Returns the base64-encoded DER encoding of a public key in SubjectPublicKeyInfo format. | |
static std::string | getDEREncoding (const XSECCryptoKey &key, const char *hash, bool nowrap=true) |
Returns the base64-encoded DER encoding of a public key in SubjectPublicKeyInfo format. | |
static std::string | getDEREncoding (const XSECCryptoX509 &cert, const char *hash, bool nowrap=true) |
Returns the base64-encoded DER encoding of a certifiate's public key in SubjectPublicKeyInfo format. | |
static std::string | getDEREncoding (const Credential &cred, bool hash=false, bool nowrap=true) |
static std::string | getDEREncoding (const XSECCryptoKey &key, bool hash=false, bool nowrap=true) |
static std::string | getDEREncoding (const XSECCryptoX509 &cert, bool hash=false, bool nowrap=true) |
|
Performs a hash operation over the supplied data.
|
|
|
|
|
|
|
|
Returns the base64-encoded DER encoding of a certifiate's public key in SubjectPublicKeyInfo format. If a hash algorithm is provided, the data is digested before being base64-encoded.
|
|
Returns the base64-encoded DER encoding of a public key in SubjectPublicKeyInfo format. If a hash algorithm is provided, the data is digested before being base64-encoded.
|
|
Returns the base64-encoded DER encoding of a public key in SubjectPublicKeyInfo format. If a hash algorithm is provided, the data is digested before being base64-encoded.
|
|
Access a file to try and guess the encoding format used.
|
|
Loads certificate(s) from a local file.
|
|
Loads certificate(s) from a URL.
|
|
Loads CRL(s) from a local file.
|
|
Loads CRL(s) from a URL.
|
|
Loads a private key from a local file.
|
|
Loads a private key from a URL.
|
|
Compares two keys for equality.
|