![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/doc/gnustep-base-doc/Base/Reference/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>NSURLAuthenticationChallenge class documentation</title> </head> <body> <font face="serif"> <a href="Base.html">Up</a> <br /> <h1><a name="title$NSURLAuthenticationChallenge">NSURLAuthenticationChallenge class documentation</a></h1> <h3>Authors</h3> <dl> <dt>Generated by Debian</dt> <dd> </dd> </dl> <div> <hr width="50%" align="left" /> <h3>Contents -</h3> <ol> <li> <a href="#001000000000">Software documentation for the NSURLAuthenticationChallenge class</a> </li> <li> <a href="#002000000000">Software documentation for the NSURLAuthenticationChallengeSender protocol</a> </li> </ol> <hr width="50%" align="left" /> </div> <h1><a name="001000000000"> Software documentation for the NSURLAuthenticationChallenge class </a></h1> <h2><a name="class$NSURLAuthenticationChallenge">NSURLAuthenticationChallenge</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSURLAuthenticationChallenge.h</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> <strong>Class</strong> to represent an authentication challenge and indicate when the challenge is complete. </div> <hr width="50%" align="left" /> <a href="#_NSURLAuthenticationChallenge_ivars">Instance Variables</a> <br/><br/> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-error">-error</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-failureResponse">-failureResponse</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-initWithAuthenticationChallenge$sender$">-initWithAuthenticationChallenge:sender:</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-initWithProtectionSpace$proposedCredential$previousFailureCount$failureResponse$error$sender$">-initWithProtectionSpace:proposedCredential:previousFailureCount:failureResponse:error:sender:</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-previousFailureCount">-previousFailureCount</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-proposedCredential">-proposedCredential</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-protectionSpace">-protectionSpace</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$NSURLAuthenticationChallenge-sender">-sender</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-error">error </a></h3> - (<a rel="gsdoc" href="NSError.html#class$NSError">NSError</a>*) <b>error</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the error with which the reciver was initialised or <code>nil</code> if it was not initialised with an error. <br /> The error may indicate the nature of the authentication failure. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-failureResponse">failureResponse </a></h3> - (<a rel="gsdoc" href="NSURLResponse.html#class$NSURLResponse">NSURLResponse</a>*) <b>failureResponse</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the response with which the receiver was initialised. <br /> This response contains the authentication failure corresponding to this challenge object. <br /> If there was no failure or response, returns <code>nil</code>. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-initWithAuthenticationChallenge$sender$">initWithAuthenticationChallenge: sender: </a></h3> - (id) <b>initWithAuthenticationChallenge:</b> (<a rel="gsdoc" href="#class$NSURLAuthenticationChallenge">NSURLAuthenticationChallenge</a>*)challenge<b> sender:</b> (id<<a rel="gsdoc" href="#protocol$(NSURLAuthenticationChallengeSender)">NSURLAuthenticationChallengeSender</a>>)sender;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Initialises a new <var>challenge</var> by copying information from an old one. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-initWithProtectionSpace$proposedCredential$previousFailureCount$failureResponse$error$sender$">initWithProtectionSpace: proposedCredential: previousFailureCount: failureResponse: error: sender: </a></h3> - (id) <b>initWithProtectionSpace:</b> (<a rel="gsdoc" href="NSURLProtectionSpace.html#class$NSURLProtectionSpace">NSURLProtectionSpace</a>*)space<b> proposedCredential:</b> (<a rel="gsdoc" href="NSURLCredential.html#class$NSURLCredential">NSURLCredential</a>*)credential<b> previousFailureCount:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>)previousFailureCount<b> failureResponse:</b> (<a rel="gsdoc" href="NSURLResponse.html#class$NSURLResponse">NSURLResponse</a>*)response<b> error:</b> (<a rel="gsdoc" href="NSError.html#class$NSError">NSError</a>*)error<b> sender:</b> (id<<a rel="gsdoc" href="#protocol$(NSURLAuthenticationChallengeSender)">NSURLAuthenticationChallengeSender</a>>)sender;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the receiver initialised in the specified protection <var>space</var> and with the specified <var>credential</var>. The <var>previousFailureCount</var> says how many requests have failed the challenge and <var>response</var> provide information about the last failure (which caused this challenge to be created). <br /> The <var>error</var> provides information about the authentication failure and the <var>sender</var> is the object to receive callbacks. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-previousFailureCount">previousFailureCount </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>previousFailureCount</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the count of failed authentication attempts. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-proposedCredential">proposedCredential </a></h3> - (<a rel="gsdoc" href="NSURLCredential.html#class$NSURLCredential">NSURLCredential</a>*) <b>proposedCredential</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns a proposed credential to answer the challenge. <br /> If there is no credential available, this returns <code>nil</code>. <br /> The credential may come from storage or from the URL itsself. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-protectionSpace">protectionSpace </a></h3> - (<a rel="gsdoc" href="NSURLProtectionSpace.html#class$NSURLProtectionSpace">NSURLProtectionSpace</a>*) <b>protectionSpace</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the protection space needing authentication. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLAuthenticationChallenge-sender">sender </a></h3> - (id<<a rel="gsdoc" href="#protocol$(NSURLAuthenticationChallengeSender)">NSURLAuthenticationChallengeSender</a>>) <b>sender</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the sender of the challenge... the object to which callbacks should be made while processing the challenge. </div> <hr width="25%" align="left" /> </div> <a name="_NSURLAuthenticationChallenge_ivars"/> <br/><hr width="50%" align="left" /> <h2>Instance Variables for NSURLAuthenticationChallenge Class</h2> <h3><a name="ivariable$NSURLAuthenticationChallenge*_NSURLAuthenticationChallengeInternal">_NSURLAuthenticationChallengeInternal</a></h3> @protected void* <b>_NSURLAuthenticationChallengeInternal</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <br/><hr width="50%" align="left" /><br/> <h1><a name="002000000000"> Software documentation for the NSURLAuthenticationChallengeSender protocol </a></h1> <h2><a name="protocol$(NSURLAuthenticationChallengeSender)">NSURLAuthenticationChallengeSender</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSURLAuthenticationChallenge.h</dd> </dl> </blockquote> <blockquote> <dl> <dt><b>Conforms to:</b></dt> <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSObject)">NSObject</a></dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> A challenge sender (usually an NSURLProtocol subclass handling a connection/download) provides these methods to permit a client to control authentication. </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$(NSURLAuthenticationChallengeSender)-cancelAuthenticationChallenge$">-cancelAuthenticationChallenge:</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$(NSURLAuthenticationChallengeSender)-continueWithoutCredentialForAuthenticationChallenge$">-continueWithoutCredentialForAuthenticationChallenge:</a></li> <li><a rel="gsdoc" href="NSURLAuthenticationChallenge.html#method$(NSURLAuthenticationChallengeSender)-useCredential$forAuthenticationChallenge$">-useCredential:forAuthenticationChallenge:</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$(NSURLAuthenticationChallengeSender)-cancelAuthenticationChallenge$">cancelAuthenticationChallenge: </a></h3> - (void) <b>cancelAuthenticationChallenge:</b> (<a rel="gsdoc" href="#class$NSURLAuthenticationChallenge">NSURLAuthenticationChallenge</a>*)challenge;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Cancels the authenticatiopn <var>challenge</var>, ensuring that the load operation will fail to retrieve data, completing with only the response headers containing the <var>challenge</var> having been read from the server. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSURLAuthenticationChallengeSender)-continueWithoutCredentialForAuthenticationChallenge$">continueWithoutCredentialForAuthenticationChallenge: </a></h3> - (void) <b>continueWithoutCredentialForAuthenticationChallenge:</b> (<a rel="gsdoc" href="#class$NSURLAuthenticationChallenge">NSURLAuthenticationChallenge</a>*)challenge;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Tells the sender to continue the load without providing a new credential for it to use... if the <var>challenge</var> already had a proposed credential, the sender may elect to use it. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSURLAuthenticationChallengeSender)-useCredential$forAuthenticationChallenge$">useCredential: forAuthenticationChallenge: </a></h3> - (void) <b>useCredential:</b> (<a rel="gsdoc" href="NSURLCredential.html#class$NSURLCredential">NSURLCredential</a>*)credential<b> forAuthenticationChallenge:</b> (<a rel="gsdoc" href="#class$NSURLAuthenticationChallenge">NSURLAuthenticationChallenge</a>*)challenge;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Tells the sender to continue the load using the new <var>credential</var> provided by this method. </div> <hr width="25%" align="left" /> </div> <br /> <a href="Base.html">Up</a> </font> </body> </html>