|
|
XGAuthenticator |
| Inherits from: | |
| Declared In: |
An XGAuthenticator class is used by the XGConnection class to perform authentication of the connection.
The XGAuthenticator class is created by an Xgrid client using the users credentials and then set on an XGConnection object. The authenticator starts in the Unauthenticated state, and then enters the Authenticating state when the connection is ready to be authenticated. If the authentication is successful the authenticator enters the Authenticated state. If the authentication is unsucessful the authenticator enters the Failed state.
This is an abstract class. Subclasses must override the specifed methods.
Called once the authentication channel has been opened and the reply to the piggyback has been received.
Returns the delegate of the receiver.
Returns the error of the receiver.
Causes the authenticator to fail and sets the error.
Called once the authentication has completed sucessfully.
Returns the piggyback message to be sent when opening the authentication channel.
Returns the profileURI of the authentication channel.
Called everytime data arrives on the authentication channel.
Sends the data on the authentication channel.
Sets the delegate of the receiver.
Returns the state of the receiver.
beginAuthentication: |
Called once the authentication channel has been opened and the reply to the piggyback has been received.
piggybackReplyThe reply to the piggyback.
delegate |
Returns the delegate of the receiver.
- (id)delegate;
The delegate of the receiver.
error |
Returns the error of the receiver.
- (NSError *)error;
The error of the receiver.
The error is set if the authenticator enters the Failed state.
failWithError: |
Causes the authenticator to fail and sets the error.
errorThe error that caused the failure.
finishAuthentication |
Called once the authentication has completed sucessfully.
- (void)finishAuthentication;
piggyback |
Returns the piggyback message to be sent when opening the authentication channel.
- (NSString *)piggyback;
The piggyback to be sent.
profileURI |
Returns the profileURI of the authentication channel.
+ (NSString *)profileURI;
The profileURI.
receiveData: |
Called everytime data arrives on the authentication channel.
dataThe received data.
sendData: |
Sends the data on the authentication channel.
dataThe data to send.
setDelegate: |
Sets the delegate of the receiver.
The delegate is not retained. If the delegate implements any of the methods in the XGAuthenticatorDelegate protocol then it will receive callbacks when connection events occur, prior to the notification of key-value observers.
state |
Returns the state of the receiver.
- (XGAuthenticatorState)state;
The state of the receiver.
Last Updated: 2009-08-12