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.
-
– credentialsReturn a set of credentials to send to the server in an ‘Authorization:’ header.
-
– setCredentials:Establish the credentials for this response.
-
– nextChallengeHandlerReturn 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.
-
– clearCredentialsClear 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)clearCredentialsDeclared In
KGChallengeResponse.hcredentials
Return a set of credentials to send to the server in an ‘Authorization:’ header.
- (NSString *)credentialsReturn Value
a set of credentials to send to the server in an ‘Authorization:’ header.
Declared In
KGChallengeResponse.hinitWithCredentials: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 *)nextChallengeHandlerParameters
- 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.hnextChallengeHandler
Return the next challenge handler responsible for handling any further challenges for the request.
- (KGChallengeHandler *)nextChallengeHandlerReturn Value
the next challenge handler responsible for handling any further challenges for the request.
Declared In
KGChallengeResponse.hsetCredentials:
Establish the credentials for this response.
- (void)setCredentials:(NSString *)credentialsParameters
- credentials
the credentials to be used for this challenge response.
Declared In
KGChallengeResponse.hsetNextChallengeHandler:
Establish the next challenge handler responsible for handling any further challenges for the request.
- (void)setNextChallengeHandler:(KGChallengeHandler *)nextChallengeHandlerParameters
- nextChallengeHandler
the next challenge handler responsible for handling any further challenges for the request.
Declared In
KGChallengeResponse.h