ObjXMPP  Diff

Differences From Artifact [6839baae99]:

To Artifact [e2fbdc8bf6]:


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
50
51
52
53
54
55
56
57
58
59
60



61
62
63
64
65

66
67

68
69
70
71
72

73
74
75

76
77

78
79
80
81
82

83
84
85

86
87

88
89
90
91
92

93
94
95
96
97
98
99
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
50
51
52
53
54
55
56
57



58
59
60
61
62
63
64

65
66

67
68
69
70
71

72
73
74

75
76

77
78
79
80
81

82
83
84

85
86

87
88
89
90
91

92
93
94
95
96
97
98
99







-
-
+
+


-
-
+
+


-
-
-
+
+
+




-
-
-
+
+
+










-
-
-
+
+
+




-
+

-
+




-
+


-
+

-
+




-
+


-
+

-
+




-
+







#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#import "XMPPAuthenticator.h"

@implementation XMPPAuthenticator
- initWithAuthcid: (OFString*)authcid_
	 password: (OFString*)password_
- initWithAuthcid: (OFString*)authcid
	 password: (OFString*)password
{
	return [self initWithAuthzid: nil
			     authcid: authcid_
			    password: password_];
			     authcid: authcid
			    password: password];
}

- initWithAuthzid: (OFString*)authzid_
	  authcid: (OFString*)authcid_
	 password: (OFString*)password_
- initWithAuthzid: (OFString*)authzid
	  authcid: (OFString*)authcid
	 password: (OFString*)password
{
	self = [super init];

	@try {
		authzid = [authzid_ copy];
		authcid = [authcid_ copy];
		password = [password_ copy];
		_authzid = [authzid copy];
		_authcid = [authcid copy];
		_password = [password copy];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (void)dealloc
{
	[authzid release];
	[authcid release];
	[password release];
	[_authzid release];
	[_authcid release];
	[_password release];

	[super dealloc];
}

- (void)setAuthzid: (OFString*)authzid_
- (void)setAuthzid: (OFString*)authzid
{
	OF_SETTER(authzid, authzid_, YES, YES)
	OF_SETTER(_authzid, authzid, YES, YES)
}

- (OFString*)authzid
{
	OF_GETTER(authzid, YES)
	OF_GETTER(_authzid, YES)
}

- (void)setAuthcid: (OFString*)authcid_
- (void)setAuthcid: (OFString*)authcid
{
	OF_SETTER(authcid, authcid_, YES, YES)
	OF_SETTER(_authcid, authcid, YES, YES)
}

- (OFString*)authcid
{
	OF_GETTER(authcid, YES)
	OF_GETTER(_authcid, YES)
}

- (void)setPassword: (OFString*)password_
- (void)setPassword: (OFString*)password
{
	OF_SETTER(password, password_, YES, YES)
	OF_SETTER(_password, password, YES, YES)
}

- (OFString*)password
{
	OF_GETTER(password, YES)
	OF_GETTER(_password, YES)
}

- (OFDataArray*)initialMessage
{
	return nil;
}