summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/SASL/WindowsServicePrincipalName.h')
-rw-r--r--Swiften/SASL/WindowsServicePrincipalName.h94
1 files changed, 47 insertions, 47 deletions
diff --git a/Swiften/SASL/WindowsServicePrincipalName.h b/Swiften/SASL/WindowsServicePrincipalName.h
index dc97c93..4c9f557 100644
--- a/Swiften/SASL/WindowsServicePrincipalName.h
+++ b/Swiften/SASL/WindowsServicePrincipalName.h
@@ -13,59 +13,59 @@
#include <Swiften/Base/API.h>
namespace Swift {
- /*
- * This represents the SPN used on Windows to identify a service
- * instance.
- */
- class SWIFTEN_API WindowsServicePrincipalName {
- public:
- /*
- * This assigns the provided service name,
- * "xmpp" service class, no instance name or referrer,
- * and default port. All of these (except the service
- * name) can be set to other values using the provided
- * methods.
- * If the constructor is called with the service name
- * "hostname.example.com" and the provided methods are
- * not used to change the defaults, then toString()
- * will return the SPN "xmpp/hostname.example.com".
- */
- WindowsServicePrincipalName(const std::string& serviceName);
+ /*
+ * This represents the SPN used on Windows to identify a service
+ * instance.
+ */
+ class SWIFTEN_API WindowsServicePrincipalName {
+ public:
+ /*
+ * This assigns the provided service name,
+ * "xmpp" service class, no instance name or referrer,
+ * and default port. All of these (except the service
+ * name) can be set to other values using the provided
+ * methods.
+ * If the constructor is called with the service name
+ * "hostname.example.com" and the provided methods are
+ * not used to change the defaults, then toString()
+ * will return the SPN "xmpp/hostname.example.com".
+ */
+ WindowsServicePrincipalName(const std::string& serviceName);
- ~WindowsServicePrincipalName();
+ ~WindowsServicePrincipalName();
- void setServiceClass(const std::string& serviceClass);
+ void setServiceClass(const std::string& serviceClass);
- void setInstanceName(const std::string& instanceName);
+ void setInstanceName(const std::string& instanceName);
- void setReferrer(const std::string& referrer);
+ void setReferrer(const std::string& referrer);
- /*
- * This sets a non-default port for the service. Note
- * that the default value is 0 which indicates the
- * default port for the service. So if the XMPP service
- * is using the default port of 5222 for client
- * connections, then do not set the port to 5222 but let
- * it remain 0 to indicate that the default port is
- * used.
- */
- void setInstancePort(short int instancePort) { instancePort_ = instancePort; }
+ /*
+ * This sets a non-default port for the service. Note
+ * that the default value is 0 which indicates the
+ * default port for the service. So if the XMPP service
+ * is using the default port of 5222 for client
+ * connections, then do not set the port to 5222 but let
+ * it remain 0 to indicate that the default port is
+ * used.
+ */
+ void setInstancePort(short int instancePort) { instancePort_ = instancePort; }
- /*
- * This follows the rules of SPN creation on Windows and
- * returns the SPN string constructed from the set
- * values.
- */
- std::string toString();
+ /*
+ * This follows the rules of SPN creation on Windows and
+ * returns the SPN string constructed from the set
+ * values.
+ */
+ std::string toString();
- private:
- DWORD dsMakeSpn(DWORD* length, wchar_t* value);
+ private:
+ DWORD dsMakeSpn(DWORD* length, wchar_t* value);
- private:
- std::wstring serviceClass_;
- std::wstring serviceName_;
- std::wstring instanceName_;
- USHORT instancePort_;
- std::wstring referrer_;
- };
+ private:
+ std::wstring serviceClass_;
+ std::wstring serviceName_;
+ std::wstring instanceName_;
+ USHORT instancePort_;
+ std::wstring referrer_;
+ };
}