#include <xmltooling/security/CredentialCriteria.h>
Public Types | |
| enum | keyinfo_extraction_t { KEYINFO_EXTRACTION_KEY = 1, KEYINFO_EXTRACTION_KEYNAMES = 2 } |
| Bitmask constants controlling the kinds of criteria set automatically based on a KeyInfo object. | |
Public Member Functions | |
| CredentialCriteria () | |
| Default constructor. | |
| virtual bool | matches (const Credential &credential) const |
| Determines whether the supplied Credential matches this CredentialCriteria. | |
| unsigned int | getUsage () const |
| Get key usage criteria. | |
| void | setUsage (unsigned int usage) |
| Set key usage criteria. | |
| const char * | getPeerName () const |
| Get the peer name criteria. | |
| void | setPeerName (const char *peerName) |
| Set the peer name criteria. | |
| const char * | getKeyAlgorithm () const |
| Get the key algorithm criteria. | |
| void | setKeyAlgorithm (const char *keyAlgorithm) |
| Set the key algorithm criteria. | |
| unsigned int | getKeySize () const |
| Get the key size criteria. | |
| void | setKeySize (unsigned int keySize) |
| Set the key size criteria. | |
| unsigned int | getMaxKeySize () const |
| Get the maximum key size criteria. | |
| void | setMaxKeySize (unsigned int keySize) |
| Set the maximum key size criteria. | |
| void | setXMLAlgorithm (const XMLCh *algorithm) |
| Set the key algorithm and size criteria based on an XML algorithm specifier. | |
| const std::set< std::string > & | getKeyNames () const |
| Gets key name criteria. | |
| std::set< std::string > & | getKeyNames () |
| Gets key name criteria. | |
| virtual XSECCryptoKey * | getPublicKey () const |
| Returns the public key criteria. | |
| void | setPublicKey (XSECCryptoKey *key) |
| Sets the public key criteria. | |
| const xmlsignature::KeyInfo * | getKeyInfo () const |
| Gets the KeyInfo criteria. | |
| virtual void | setKeyInfo (const xmlsignature::KeyInfo *keyInfo, int extraction=0) |
| Sets the KeyInfo criteria. | |
| DSIGKeyInfoList * | getNativeKeyInfo () const |
| Gets the native KeyInfo criteria. | |
| virtual void | setNativeKeyInfo (DSIGKeyInfoList *keyInfo, int extraction=0) |
| Sets the KeyInfo criteria. | |
| void | setSignature (const xmlsignature::Signature &sig, int extraction=0) |
| Sets the KeyInfo criteria from an XML Signature. | |
| virtual void | reset () |
| Resets object to a default state. | |
|
|
Get the key algorithm criteria.
|
|
|
Gets the KeyInfo criteria.
|
|
|
Gets key name criteria.
|
|
|
Gets key name criteria.
|
|
|
Get the key size criteria. If a a maximum size is also set, this is treated as a minimum.
|
|
|
Get the maximum key size criteria.
|
|
|
Gets the native KeyInfo criteria.
|
|
|
Get the peer name criteria.
|
|
|
Returns the public key criteria.
|
|
|
Get key usage criteria.
|
|
|
Determines whether the supplied Credential matches this CredentialCriteria.
|
|
|
Set the key algorithm criteria.
|
|
||||||||||||
|
Sets the KeyInfo criteria.
|
|
|
Set the key size criteria. If a a maximum size is also set, this is treated as a minimum.
|
|
|
Set the maximum key size criteria.
|
|
||||||||||||
|
Sets the KeyInfo criteria.
|
|
|
Set the peer name criteria.
|
|
|
Sets the public key criteria. The lifetime of the key MUST extend for the lifetime of this object.
|
|
||||||||||||
|
Sets the KeyInfo criteria from an XML Signature.
|
|
|
Set key usage criteria.
|
|
|
Set the key algorithm and size criteria based on an XML algorithm specifier.
|
1.4.6