#include <xmltooling/security/Credential.h>
Inheritance diagram for xmltooling::Credential:

Public Types | |
| RESOLVE_KEYS = 1 | |
| RESOLVE_NAMES = 2 | |
| UNSPECIFIED_CREDENTIAL = 0 | |
| SIGNING_CREDENTIAL = 1 | |
| TLS_CREDENTIAL = 2 | |
| ENCRYPTION_CREDENTIAL = 4 | |
| KEYINFO_KEY_VALUE = 1 | |
| KEYINFO_KEY_NAME = 2 | |
| enum | ResolveTypes { RESOLVE_KEYS = 1, RESOLVE_NAMES = 2 } |
| Bitmask constants for limiting resolution process inside a CredentialResolver. | |
| enum | UsageTypes { UNSPECIFIED_CREDENTIAL = 0, SIGNING_CREDENTIAL = 1, TLS_CREDENTIAL = 2, ENCRYPTION_CREDENTIAL = 4 } |
| Bitmask of use cases for credentials. | |
| enum | KeyInfoTypes { KEYINFO_KEY_VALUE = 1, KEYINFO_KEY_NAME = 2 } |
| Bitmask of supported KeyInfo content to generate. | |
Public Member Functions | |
| virtual unsigned int | getUsage () const =0 |
| Get credential usage types. | |
| virtual const char * | getAlgorithm () const =0 |
| Returns an algorithm identifier for the Credential. | |
| virtual unsigned int | getKeySize () const =0 |
| Returns the size of the key. | |
| virtual XSECCryptoKey * | getPrivateKey () const =0 |
| Returns a secret or private key to use for signing or decryption operations. | |
| virtual XSECCryptoKey * | getPublicKey () const =0 |
| Returns a secret or public key to use for verification or encryption operations. | |
| virtual const std::set< std::string > & | getKeyNames () const =0 |
| Returns names representing the Credential. | |
| virtual xmlsignature::KeyInfo * | getKeyInfo (bool compact=false) const =0 |
| Returns a ds:KeyInfo object representing the Credential for use in communicating with other entities. | |
| virtual const CredentialContext * | getCredentalContext () const |
| Get the credential context information, which provides additional information specific to the context in which the credential was resolved. | |
Shared credential implementations should implement reference counting and honor any locking parameters to ensure appropriate synchronization.
| virtual const char* xmltooling::Credential::getAlgorithm | ( | ) | const [pure virtual] |
Returns an algorithm identifier for the Credential.
Implemented in xmltooling::BasicX509Credential.
| virtual const CredentialContext* xmltooling::Credential::getCredentalContext | ( | ) | const [virtual] |
Get the credential context information, which provides additional information specific to the context in which the credential was resolved.
| virtual xmlsignature::KeyInfo* xmltooling::Credential::getKeyInfo | ( | bool | compact = false |
) | const [pure virtual] |
Returns a ds:KeyInfo object representing the Credential for use in communicating with other entities.
| compact | true iff the communication medium is such that only compact forms should be included |
Implemented in xmltooling::BasicX509Credential.
| virtual const std::set<std::string>& xmltooling::Credential::getKeyNames | ( | ) | const [pure virtual] |
Returns names representing the Credential.
Names should be unique in the context of the comparisons against CredentialCriteria that deployments expect to see.
Implemented in xmltooling::BasicX509Credential.
| virtual unsigned int xmltooling::Credential::getKeySize | ( | ) | const [pure virtual] |
Returns the size of the key.
Implemented in xmltooling::BasicX509Credential.
| virtual XSECCryptoKey* xmltooling::Credential::getPrivateKey | ( | ) | const [pure virtual] |
Returns a secret or private key to use for signing or decryption operations.
Implemented in xmltooling::BasicX509Credential.
| virtual XSECCryptoKey* xmltooling::Credential::getPublicKey | ( | ) | const [pure virtual] |
Returns a secret or public key to use for verification or encryption operations.
Implemented in xmltooling::BasicX509Credential.
| virtual unsigned int xmltooling::Credential::getUsage | ( | ) | const [pure virtual] |
Get credential usage types.
Implemented in xmltooling::BasicX509Credential.
1.4.7