KGChallengeResponse Class Reference
Inherits from | NSObject |
Declared in | KGChallengeResponse.h |
Overview
A challenge response contains a character array representing the response to the server, and a reference to the next challenge handler to handle any further challenges for the request.
Tasks
-
– initWithCredentials:nextChallengeHandler:
Constructor from a set of credentials to send to the server in an ‘Authorization:’ header and the next challenge handler responsible for handling any further challenges for the request.
-
– credentials
Return a set of credentials to send to the server in an ‘Authorization:’ header.
-
– setCredentials:
Establish the credentials for this response.
-
– nextChallengeHandler
Return the next challenge handler responsible for handling any further challenges for the request.
-
– setNextChallengeHandler:
Establish the next challenge handler responsible for handling any further challenges for the request.
-
– clearCredentials
Clear the credentials of this response.
Calling this method once the credentials have been communicated to the network layer protects credentials in memory.
Instance Methods
clearCredentials
Clear the credentials of this response.
Calling this method once the credentials have been communicated to the network layer protects credentials in memory.- (void)clearCredentials
Declared In
KGChallengeResponse.h
credentials
Return a set of credentials to send to the server in an ‘Authorization:’ header.
- (NSString *)credentials
Return Value
a set of credentials to send to the server in an ‘Authorization:’ header.
Declared In
KGChallengeResponse.h
initWithCredentials:nextChallengeHandler:
Constructor from a set of credentials to send to the server in an ‘Authorization:’ header and the next challenge handler responsible for handling any further challenges for the request.
- (id)initWithCredentials:(NSString *)credentials nextChallengeHandler:(KGChallengeHandler *)nextChallengeHandler
Parameters
- credentials
a set of credentials to send to the server in an ‘Authorization:’ header
- nextChallengeHandler
the next challenge handler responsible for handling any further challenges for the request.
Declared In
KGChallengeResponse.h
nextChallengeHandler
Return the next challenge handler responsible for handling any further challenges for the request.
- (KGChallengeHandler *)nextChallengeHandler
Return Value
the next challenge handler responsible for handling any further challenges for the request.
Declared In
KGChallengeResponse.h
setCredentials:
Establish the credentials for this response.
- (void)setCredentials:(NSString *)credentials
Parameters
- credentials
the credentials to be used for this challenge response.
Declared In
KGChallengeResponse.h
setNextChallengeHandler:
Establish the next challenge handler responsible for handling any further challenges for the request.
- (void)setNextChallengeHandler:(KGChallengeHandler *)nextChallengeHandler
Parameters
- nextChallengeHandler
the next challenge handler responsible for handling any further challenges for the request.
Declared In
KGChallengeResponse.h