![]() 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>NSURLCredential class documentation</title> </head> <body> <font face="serif"> <a href="Base.html">Up</a> <br /> <h1><a name="title$NSURLCredential">NSURLCredential class documentation</a></h1> <h3>Authors</h3> <dl> <dt>Generated by Debian</dt> <dd> </dd> </dl> <div> </div> <h1><a name="001000000000"> Software documentation for the NSURLCredential class </a></h1> <h2><a name="class$NSURLCredential">NSURLCredential</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSURLCredential.h</dd> </dl> </blockquote> <blockquote> <dl> <dt><b>Conforms to:</b></dt> <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCopying)">NSCopying</a></dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Represents a user/password credential </div> <hr width="50%" align="left" /> <a href="#_NSURLCredential_ivars">Instance Variables</a> <br/><br/> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSURLCredential.html#method$NSURLCredential+credentialWithUser$password$persistence$">+credentialWithUser:password:persistence:</a></li> <li><a rel="gsdoc" href="NSURLCredential.html#method$NSURLCredential-hasPassword">-hasPassword</a></li> <li><a rel="gsdoc" href="NSURLCredential.html#method$NSURLCredential-initWithUser$password$persistence$">-initWithUser:password:persistence:</a></li> <li><a rel="gsdoc" href="NSURLCredential.html#method$NSURLCredential-isEqual$">-isEqual:</a></li> <li><a rel="gsdoc" href="NSURLCredential.html#method$NSURLCredential-password">-password</a></li> <li><a rel="gsdoc" href="NSURLCredential.html#method$NSURLCredential-persistence">-persistence</a></li> <li><a rel="gsdoc" href="NSURLCredential.html#method$NSURLCredential-user">-user</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSURLCredential+credentialWithUser$password$persistence$">credentialWithUser: password: persistence: </a></h3> + (<a rel="gsdoc" href="#class$NSURLCredential">NSURLCredential</a>*) <b>credentialWithUser:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)user<b> password:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)password<b> persistence:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSURLCredentialPersistence">NSURLCredentialPersistence</a>)persistence;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns an autoreleased instance initialised using the <a rel="gsdoc" href="#method$NSURLCredential-initWithUser$password$persistence$">-initWithUser:password:persistence:</a> method. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLCredential-hasPassword">hasPassword </a></h3> - (BOOL) <b>hasPassword</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Determine whether the credential has a password. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLCredential-initWithUser$password$persistence$">initWithUser: password: persistence: </a></h3> - (id) <b>initWithUser:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)user<b> password:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)password<b> persistence:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSURLCredentialPersistence">NSURLCredentialPersistence</a>)persistence;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> This is a designated initialiser for the class.<br /> <div class="desc"> Initialises and returns the receiver with a <var>user</var> name and <var>password</var>. <br /> The <var>user</var> identifies the credential and must be specified but the <var>password</var> may be <code>nil</code>. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLCredential-isEqual$">isEqual: </a></h3> - (BOOL) <b>isEqual:</b> (id)other;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Tests two credentials for equality... credentials are considered to be equal if their <a rel="gsdoc" href="#method$NSURLCredential-user"> -user </a> methods return the same value, since you cannot have more than one credential for a suser within an <a rel="gsdoc" href="NSURLProtectionSpace.html#class$NSURLProtectionSpace">NSURLProtectionSpace</a> . </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLCredential-password">password </a></h3> - (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>password</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the password for the receiver. <br /> May require prompting of the user to authorize retrieval. <br /> May return <code>nil</code> if retrieval of the password fails (eg authorization failure) even if the credential actually has a password. Call the <a rel="gsdoc" href="#method$NSURLCredential-hasPassword"> -hasPassword </a> method to determine whether the credential has a password </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLCredential-persistence">persistence </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSURLCredentialPersistence">NSURLCredentialPersistence</a>) <b>persistence</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Return the presistence of this credential. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSURLCredential-user">user </a></h3> - (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>user</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.2.0, Base 1.13.0</div> <br /> <div class="desc"> Returns the user string for the receiver </div> <hr width="25%" align="left" /> </div> <a name="_NSURLCredential_ivars"/> <br/><hr width="50%" align="left" /> <h2>Instance Variables for NSURLCredential Class</h2> <h3><a name="ivariable$NSURLCredential*_NSURLCredentialInternal">_NSURLCredentialInternal</a></h3> @protected void* <b>_NSURLCredentialInternal</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/> <br /> <a href="Base.html">Up</a> </font> </body> </html>