Differences From Artifact [60f59f8f6f]:
- File
src/XMPPExceptions.m
— part of check-in
[6a3b0a9988]
at
2011-02-21 03:09:39
on branch trunk
— Add SCRAM-SHA-1 support
This adds the new base class XMPPAuthenticator and the derived
classes XMPPSCRAMAuth and XMPPPLAINAuth.
They are now used for authentication from within XMPPConnection.Also adds XMPPAuthFailedException which is thrown in appropriate places. (user: florob@babelmonkeys.de, size: 5635) [annotate] [blame] [check-ins using]
To Artifact [e5e54a18a7]:
- File
src/XMPPExceptions.m
— part of check-in
[5df36353c6]
at
2011-02-26 14:13:40
on branch trunk
— Clean up exceptions.
The description generated by %@ is automatically released, so no need
for an autorelease pool. (user: js, size: 5277) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
60 61 62 63 64 65 66 | [connection release]; [super dealloc]; } - (OFString*)description { | < < < | < | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | [connection release]; [super dealloc]; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"An exception occurred in class %@!", inClass]; return description; } @end @implementation XMPPStringPrepFailedException @synthesize profile, string; |
︙ | ︙ | |||
126 127 128 129 130 131 132 | [string release]; [super dealloc]; } - (OFString*)description { | < < < < | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | [string release]; [super dealloc]; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"Stringprep with profile %@ failed on string '%@'!", profile, string]; return description; } @end @implementation XMPPIDNATranslationFailedException @synthesize operation, string; |
︙ | ︙ | |||
193 194 195 196 197 198 199 | [string release]; [super dealloc]; } - (OFString*)description { | < < < | < < | 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | [string release]; [super dealloc]; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"IDNA operation %@ failed on string '%@'!", operation, string]; return description; } @end @implementation XMPPAuthFailedException @synthesize reason; |
︙ | ︙ | |||
255 256 257 258 259 260 261 | [reason release]; [super dealloc]; } - (OFString*)description { | < < < < | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 | [reason release]; [super dealloc]; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"Authentication failed. Reason: %@!", reason]; return description; } @end |