ObjXMPP  Diff

Differences From Artifact [d4a2643832]:

To Artifact [cf4b0ef3fa]:


23
24
25
26
27
28
29
30
31
32
33
34
35
36



37

38

39

40
41
42
43
44
45
46
23
24
25
26
27
28
29

30

31

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49







-

-

-


+
+
+

+

+

+







#import <ObjFW/ObjFW.h>

/**
 * \brief A base class for classes implementing authentication mechanisms
 */
@interface XMPPAuthenticator: OFObject
{
	/// The authzid to get authorization for
	OFString *authzid;
	/// The authcid to authenticate with
	OFString *authcid;
	/// The password to authenticate with
	OFString *password;
}

#ifdef OF_HAVE_PROPERTIES
/// The authzid to get authorization for
@property (copy) OFString *authzid;
/// The authcid to authenticate with
@property (copy) OFString *authcid;
/// The password to authenticate with
@property (copy) OFString *password;
#endif

/**
 * Initializes an already allocated XMPPAuthenticator with an authcid
 * and password.
 *
 * \param authcid The authcid to authenticate with
 * \param password The password to authenticate with
75
76
77
78
79
80
81







82
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92







+
+
+
+
+
+
+


/**
 * Checks whether the servers final message was valid
 *
 * \param  message The servers final message
 */
- (void)parseServerFinalMessage: (OFDataArray*)message;

- (void)setAuthzid: (OFString*)authzid;
- (OFString*)authzid;
- (void)setAuthcid: (OFString*)authcid;
- (OFString*)authcid;
- (void)setPassword: (OFString*)password;
- (OFString*)password;
@end