|
xmltooling
1.4.2
|
Wraps an X.509-based Credential by storing key/cert objects inside. More...
#include <xmltooling/security/BasicX509Credential.h>

Public Member Functions | |
| unsigned int | getUsage () const |
| const char * | getAlgorithm () const |
| unsigned int | getKeySize () const |
| XSECCryptoKey * | getPrivateKey () const |
| XSECCryptoKey * | getPublicKey () const |
| const std::set< std::string > & | getKeyNames () const |
| xmlsignature::KeyInfo * | getKeyInfo (bool compact=false) const |
|
const std::vector < XSECCryptoX509 * > & | getEntityCertificateChain () const |
| XSECCryptoX509CRL * | getCRL () const |
|
const std::vector < XSECCryptoX509CRL * > & | getCRLs () const |
| const char * | getSubjectName () const |
| const char * | getIssuerName () const |
| const char * | getSerialNumber () const |
| void | extract () |
Protected Member Functions | |
| BasicX509Credential (bool ownCerts) | |
| Constructor. | |
| BasicX509Credential (XSECCryptoKey *key, const std::vector< XSECCryptoX509 * > &certs, XSECCryptoX509CRL *crl=0) | |
| Constructor. | |
| BasicX509Credential (XSECCryptoKey *key, const std::vector< XSECCryptoX509 * > &certs, const std::vector< XSECCryptoX509CRL * > &crls) | |
| Constructor. | |
| void | initKeyInfo (unsigned int types=0) |
| Initializes (or reinitializes) a ds:KeyInfo to represent the Credential. | |
Protected Attributes | |
| XSECCryptoKey * | m_key |
| The private/secret key/keypair. | |
| std::set< std::string > | m_keyNames |
| Key names (derived from credential, KeyInfo, or both). | |
| std::string | m_subjectName |
| Subject DN. | |
| std::string | m_issuerName |
| Issuer DN. | |
| std::string | m_serial |
| Serial number. | |
| std::vector< XSECCryptoX509 * > | m_xseccerts |
| The X.509 certificate chain. | |
| bool | m_ownCerts |
| Indicates whether to destroy certificates. | |
| std::vector< XSECCryptoX509CRL * > | m_crls |
| The X.509 CRLs. | |
| xmlsignature::KeyInfo * | m_keyInfo |
| The KeyInfo object representing the information. | |
| xmlsignature::KeyInfo * | m_compactKeyInfo |
| The KeyInfo object representing the information in compact form. | |
Wraps an X.509-based Credential by storing key/cert objects inside.
| xmltooling::BasicX509Credential::BasicX509Credential | ( | bool | ownCerts | ) | [protected] |
Constructor.
| ownCerts | true iff any certificates subsequently stored should be freed by destructor |
| xmltooling::BasicX509Credential::BasicX509Credential | ( | XSECCryptoKey * | key, |
| const std::vector< XSECCryptoX509 * > & | certs, | ||
| XSECCryptoX509CRL * | crl = 0 |
||
| ) | [protected] |
Constructor.
| key | key pair or secret key |
| certs | array of X.509 certificates, the first entry being the entity certificate |
| crl | optional CRL |
| xmltooling::BasicX509Credential::BasicX509Credential | ( | XSECCryptoKey * | key, |
| const std::vector< XSECCryptoX509 * > & | certs, | ||
| const std::vector< XSECCryptoX509CRL * > & | crls | ||
| ) | [protected] |
Constructor.
| key | key pair or secret key |
| certs | array of X.509 certificates, the first entry being the entity certificate |
| crls | array of X.509 CRLs |
| void xmltooling::BasicX509Credential::initKeyInfo | ( | unsigned int | types = 0 | ) | [protected] |
Initializes (or reinitializes) a ds:KeyInfo to represent the Credential.
| types | the kinds of KeyInfo content to include |
xmlsignature::KeyInfo* xmltooling::BasicX509Credential::m_compactKeyInfo [protected] |
The KeyInfo object representing the information in compact form.
std::vector<XSECCryptoX509CRL*> xmltooling::BasicX509Credential::m_crls [protected] |
The X.509 CRLs.
std::string xmltooling::BasicX509Credential::m_issuerName [protected] |
Issuer DN.
XSECCryptoKey* xmltooling::BasicX509Credential::m_key [protected] |
The private/secret key/keypair.
xmlsignature::KeyInfo* xmltooling::BasicX509Credential::m_keyInfo [protected] |
The KeyInfo object representing the information.
std::set<std::string> xmltooling::BasicX509Credential::m_keyNames [protected] |
Key names (derived from credential, KeyInfo, or both).
bool xmltooling::BasicX509Credential::m_ownCerts [protected] |
Indicates whether to destroy certificates.
std::string xmltooling::BasicX509Credential::m_serial [protected] |
Serial number.
std::string xmltooling::BasicX509Credential::m_subjectName [protected] |
Subject DN.
std::vector<XSECCryptoX509*> xmltooling::BasicX509Credential::m_xseccerts [protected] |
The X.509 certificate chain.