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
50
51
52
53
54
|
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
50
51
52
53
54
|
-
-
+
+
-
-
-
+
+
+
-
+
|
# include "config.h"
#endif
#import "XMPPPLAINAuth.h"
#import "XMPPExceptions.h"
@implementation XMPPPLAINAuth
+ (instancetype)PLAINAuthWithAuthcid: (OFString*)authcid
password: (OFString*)password
+ (instancetype)PLAINAuthWithAuthcid: (OFString *)authcid
password: (OFString *)password
{
return [[[self alloc] initWithAuthcid: authcid
password: password] autorelease];
}
+ (instancetype)PLAINAuthWithAuthzid: (OFString*)authzid
authcid: (OFString*)authcid
password: (OFString*)password
+ (instancetype)PLAINAuthWithAuthzid: (OFString *)authzid
authcid: (OFString *)authcid
password: (OFString *)password
{
return [[[self alloc] initWithAuthzid: authzid
authcid: authcid
password: password] autorelease];
}
- (OFDataArray*)initialMessage
- (OFDataArray *)initialMessage
{
OFDataArray *message = [OFDataArray dataArray];
/* authzid */
if (_authzid)
[message addItem: _authzid];
|