12 #define P6LICENSE_H__ 1
107 #define IF_p6IEnumLicense {0xaab71d4,0xa6b1,0x4b55,{0xbd,0x31,0x2f,0x14,0xa2,0x59,0x2c,0x4b}}
149 #define IF_p6IEnumLicenseValueList {0x67A3B9F0,0xA69C,0x40B6,{0xAF,0xE4,0x0C,0xB0,0x2E,0x81,0x78,0x0D}}
402 #define IF_p6ILicense {0x1df20931,0x7c,0x48d4,{0x93,0x8,0x7d,0x2a,0x6f,0xe,0x72,0xbb}}
405 #define COMP_p6License {0x3753d1af,0x5bdd,0x4daa,{0xa7,0xe4,0xfc,0x7,0xbd,0xb,0xc3,0xbb}}
P6SIGNHMAC
Supported HMAC algorthms for signing:
virtual P6R::P6ERR reset()=0
This method is used to re-start the enumerator at the beginning.
This interface provides key metadata infrormation and key access.
virtual P6R::P6ERR enumLicenseValueList(const P6R::P6WCHAR *pszKeyName, p6IEnumLicenseValueList **ppEnum)=0
Creates and returns an enumerator for a value list for a specific key name in a verified license (i...
A license file is composed of one or more name - value pairs.
virtual P6R::P6ERR setPropInt(const P6WCHAR *pPropName, P6INT32 value)=0
Store the integer value as a property of the license in the format of "name=value", where pPropName points to a string containing "name".
A license file is composed of one or more name - value pairs.
virtual P6R::P6ERR setPropStringList(const P6WCHAR *pPropName, const P6WCHAR *pValue)=0
Store the string list value as a property of the license in the format of "name=value", where pPropName points to a string containing "name".
virtual P6R::P6ERR getPropString(const P6WCHAR *pPropName, P6WCHAR *pBuffer, P6UINT32 cBuffer, P6UINT32 *pWritten)=0
Retrieve the string value of the named property in the license that has been successfully verified or...
virtual P6R::P6ERR setMode(P6LICENSE_OPERATION mode)=0
This method can be invoked many times to change the mode of the p6ILicense component.
wchar_t P6WCHAR
Wide character type see p6i18n.h.
The base interface all [p6]COM components must derive from and implement.
virtual P6R::P6ERR reset()=0
This method is used to re-start the enumerator at the beginning.
virtual P6R::P6ERR setKeys(p6ICryptoKey *pPublicKey, p6ICryptoKey *pPrivateKey, P6SIGNHMAC algorithm)=0
This component does not do key management.
virtual P6R::P6ERR next(P6UINT32 cElements, P6PROPERTYVALUE *parElements, P6UINT32 *pcReturned)=0
This method is used to iterate through all the value list items for the specified key name...
virtual P6R::P6ERR verifyLicenseFile(const P6WCHAR *pFilePath)=0
Validate that the license file was generated by this component given the key pair used in the call to...
Interface definition for all p6I18n and L10n features.
This interface supports the generation and verification of p6I18n licenses.
virtual P6R::P6ERR next(P6UINT32 cElements, P6PROPERTYVALUE *parElements, P6UINT32 *pcReturned)=0
This method is used to iterate through all the properties of a license.
virtual P6R::P6ERR enumLicense(p6IEnumLicense **ppEnum)=0
Creates and returns an enumerator for all the properties in a verified license (i.e., after a successful call to verifyLicenseFile) or a license being created (i.e., after several setPropXXX function calls but BEFORE createLicenseFile is called).
virtual P6R::P6ERR initialize(P6LICENSEFLAGS flags, P6LICENSE_OPERATION mode)=0
Sets up the object to run properly.
P6LICENSE_OPERATION
These are the supported operations that can be performed on a license.
const P6LICENSEFLAGS P6LICENSE_NOFLAGS
A license property is a name - value pair.
P6UINT32 P6LICENSEFLAGS
P6LICENSEFLAGS.
virtual P6R::P6ERR createLicenseFile(const P6WCHAR *pFilePath)=0
Create a new license file at the "pFilePath" location.
virtual P6R::P6ERR getPropInt(const P6WCHAR *pPropName, P6INT32 *pValue)=0
Retrieve the integer value of the named property in the license that has been successfully verified o...
Interface definition for the cryptographic signature generation and verification. ...
virtual P6R::P6ERR setPropString(const P6WCHAR *pPropName, const P6WCHAR *pValue)=0
Store the string value as a property of the license in the format of "name=value", where pPropName points to a string containing "name".
P6R Cryptographic key interface definitions.