xmltooling
1.4.2
|
Wraps keys and related functionality. More...
#include <xmltooling/security/Credential.h>
Public Types | |
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. More... | |
virtual const char * | getAlgorithm () const =0 |
Returns an algorithm identifier for the Credential. More... | |
virtual unsigned int | getKeySize () const =0 |
Returns the size of the key in bits. More... | |
virtual XSECCryptoKey * | getPrivateKey () const =0 |
Returns a secret or private key to use for signing or decryption operations. More... | |
virtual XSECCryptoKey * | getPublicKey () const =0 |
Returns a secret or public key to use for verification or encryption operations. More... | |
virtual const std::set < std::string > & | getKeyNames () const =0 |
Returns names representing the Credential. More... | |
virtual xmlsignature::KeyInfo * | getKeyInfo (bool compact=false) const =0 |
Returns a ds:KeyInfo object representing the Credential for use in communicating with other entities. More... | |
virtual const CredentialContext * | getCredentalContext () const |
Get the credential context information, which provides additional information specific to the context in which the credential was resolved. More... | |
Wraps keys and related functionality.
Shared credential implementations should implement reference counting and honor any locking parameters to ensure appropriate synchronization.
|
pure virtual |
Returns an algorithm identifier for the Credential.
Implemented in xmltooling::BasicX509Credential.
|
virtual |
Get the credential context information, which provides additional information specific to the context in which the credential was resolved.
|
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.
|
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.
|
pure virtual |
Returns the size of the key in bits.
Implemented in xmltooling::BasicX509Credential.
|
pure virtual |
Returns a secret or private key to use for signing or decryption operations.
Implemented in xmltooling::BasicX509Credential.
|
pure virtual |
Returns a secret or public key to use for verification or encryption operations.
Implemented in xmltooling::BasicX509Credential.
|
pure virtual |
Get credential usage types.
Implemented in xmltooling::BasicX509Credential.