// CkAuthAzureSASU.h: interface for the CkAuthAzureSASU class.
//
//////////////////////////////////////////////////////////////////////

// This header is generated for Chilkat 11.2.0

#ifndef _CkAuthAzureSASU_H
#define _CkAuthAzureSASU_H
	
#include "../../Cpp/include/chilkatDefs.h"
#include "../../Cpp/include/CkString.h"
#include "CkUtf16Base.h"




#if !defined(__sun__) && !defined(__sun)
#pragma pack (push, 8)
#endif
 

// CLASS: CkAuthAzureSASU
class CK_VISIBLE_PUBLIC CkAuthAzureSASU  : public CkUtf16Base
{
	

	private:
	
	// Don't allow assignment or copying these objects.
	CkAuthAzureSASU(const CkAuthAzureSASU &);
	CkAuthAzureSASU &operator=(const CkAuthAzureSASU &);

    public:
	CkAuthAzureSASU(void);
	virtual ~CkAuthAzureSASU(void);

	

	static CkAuthAzureSASU *createNew(void);
	

	
	void CK_VISIBLE_PRIVATE inject(void *impl);

	// May be called when finished with the object to free/dispose of any
	// internal resources held by the object. 
	void dispose(void);

	

	// BEGIN PUBLIC INTERFACE

	// ----------------------
	// Properties
	// ----------------------
	// This is the signing key (access key) that must be kept private. It is a base64
	// string such as
	// abdTvCZFFoWUyre6erlNN+IOb9qhXgDsyhrxmZvpmxqFDwpl9oD0X9Fy0hIQa6L5UohznRLmkCtUYySO4
	// Y2eaw==
	void get_AccessKey(CkString &str);
	// This is the signing key (access key) that must be kept private. It is a base64
	// string such as
	// abdTvCZFFoWUyre6erlNN+IOb9qhXgDsyhrxmZvpmxqFDwpl9oD0X9Fy0hIQa6L5UohznRLmkCtUYySO4
	// Y2eaw==
	const uint16_t *accessKey(void);
	// This is the signing key (access key) that must be kept private. It is a base64
	// string such as
	// abdTvCZFFoWUyre6erlNN+IOb9qhXgDsyhrxmZvpmxqFDwpl9oD0X9Fy0hIQa6L5UohznRLmkCtUYySO4
	// Y2eaw==
	void put_AccessKey(const uint16_t *newVal);

	// Defines the format of the string to sign.
	// 
	// The format is specified as a comma-separated list of names. For example:
	// 
	// signedpermissions,signedstart,signedexpiry,canonicalizedresource,signedidentifier,signedIP,signedProtocol,signedversion,rscc,rscd,rsce,rscl,rsct
	// This will result in an actual string-to-sign that is composed of the values for
	// each name separated by newline (LF) chars. For example:signedpermissions + \n+  
	// signedstart + \n+  
	// signedexpiry + \n+  
	// canonicalizedresource + \n+  
	// signedidentifier + \n+  
	// signedIP + \n+  
	// signedProtocol + \n+  
	// signedversion + \n+  
	// rscc + \n+  
	// rscd + \n+  
	// rsce + \n+  
	// rscl + \n+  
	// rsct
	void get_StringToSign(CkString &str);
	// Defines the format of the string to sign.
	// 
	// The format is specified as a comma-separated list of names. For example:
	// 
	// signedpermissions,signedstart,signedexpiry,canonicalizedresource,signedidentifier,signedIP,signedProtocol,signedversion,rscc,rscd,rsce,rscl,rsct
	// This will result in an actual string-to-sign that is composed of the values for
	// each name separated by newline (LF) chars. For example:signedpermissions + \n+  
	// signedstart + \n+  
	// signedexpiry + \n+  
	// canonicalizedresource + \n+  
	// signedidentifier + \n+  
	// signedIP + \n+  
	// signedProtocol + \n+  
	// signedversion + \n+  
	// rscc + \n+  
	// rscd + \n+  
	// rsce + \n+  
	// rscl + \n+  
	// rsct
	const uint16_t *stringToSign(void);
	// Defines the format of the string to sign.
	// 
	// The format is specified as a comma-separated list of names. For example:
	// 
	// signedpermissions,signedstart,signedexpiry,canonicalizedresource,signedidentifier,signedIP,signedProtocol,signedversion,rscc,rscd,rsce,rscl,rsct
	// This will result in an actual string-to-sign that is composed of the values for
	// each name separated by newline (LF) chars. For example:signedpermissions + \n+  
	// signedstart + \n+  
	// signedexpiry + \n+  
	// canonicalizedresource + \n+  
	// signedidentifier + \n+  
	// signedIP + \n+  
	// signedProtocol + \n+  
	// signedversion + \n+  
	// rscc + \n+  
	// rscd + \n+  
	// rsce + \n+  
	// rscl + \n+  
	// rsct
	void put_StringToSign(const uint16_t *newVal);



	// ----------------------
	// Methods
	// ----------------------
	// Clears all params set by the methods SetNonTokenParam and SetTokenParam.
	void Clear(void);

	// Generates and returns the SAS token based on the defined StringToSign and
	// params.
	// 
	// References:
	// 1: #StringToSign
	bool GenerateToken(CkString &outStr);
	// Generates and returns the SAS token based on the defined StringToSign and
	// params.
	// 
	// References:
	// 1: #StringToSign
	const uint16_t *generateToken(void);

	// Adds a non-token parameter name/value. This is a value that is included in the
	// string to sign, but is NOT included in the token query params.
	bool SetNonTokenParam(const uint16_t *name, const uint16_t *value);

	// Adds a token parameter name/value. This is a value that is included in the
	// string to sign, and is also included in the token query params.
	bool SetTokenParam(const uint16_t *name, const uint16_t *authParamName, const uint16_t *value);





	// END PUBLIC INTERFACE


};
#if !defined(__sun__) && !defined(__sun)
#pragma pack (pop)
#endif
	
#endif
