@@ -126,7 +126,7 @@ NOTE: The test suite requires an active kerberos deployment.
126126## Functions
127127
128128<dl >
129- <dt ><a href =" #checkPassword " >checkPassword(username, password, service, [defaultRealm])</a > ⇒ <code >Promise</code ></dt >
129+ <dt ><a href =" #checkPassword " >checkPassword(username, password, service, [defaultRealm])</a > ⇒ <code >Promise. & lt ; null & gt ; </code ></dt >
130130<dd ><p >This function provides a simple way to verify that a user name and password
131131match those normally used for Kerberos authentication.
132132It does this by checking that the supplied user name and password can be
@@ -145,10 +145,10 @@ security could be compromised if you do.</p>
145145<dd ><p >This function returns the service principal for the server given a service type and hostname.</p >
146146<p >Details are looked up via the <code >/etc/keytab</code > file.</p >
147147</dd >
148- <dt ><a href =" #initializeClient " >initializeClient(service, [options])</a > ⇒ <code >Promise</code ></dt >
148+ <dt ><a href =" #initializeClient " >initializeClient(service, [options])</a > ⇒ <code >< a href = " #KerberosClient " > Promise. & lt ; KerberosClient & gt ; </ a > </code ></dt >
149149<dd ><p >Initializes a context for client-side authentication with the given service principal.</p >
150150</dd >
151- <dt ><a href =" #initializeServer " >initializeServer(service)</a > ⇒ <code >Promise</code ></dt >
151+ <dt ><a href =" #initializeServer " >initializeServer(service)</a > ⇒ <code >< a href = " #KerberosServer " > Promise. & lt ; KerberosServer & gt ; </ a > </code ></dt >
152152<dd ><p >Initializes a context for server-side authentication with the given service principal.</p >
153153</dd >
154154</dl >
@@ -185,7 +185,6 @@ security could be compromised if you do.</p>
185185
186186Processes a single kerberos client-side step using the supplied server challenge.
187187
188- ** Returns** : <code >Promise</code > - returns Promise
189188<a name =" KerberosClient+wrap " ></a >
190189
191190### * kerberosClient* .wrap(challenge, [ options] )
@@ -199,7 +198,6 @@ Processes a single kerberos client-side step using the supplied server challenge
199198
200199Perform the client side kerberos wrap step.
201200
202- ** Returns** : <code >Promise</code > - returns Promise
203201<a name =" KerberosClient+unwrap " ></a >
204202
205203### * kerberosClient* .unwrap(challenge)
@@ -210,7 +208,6 @@ Perform the client side kerberos wrap step.
210208
211209Perform the client side kerberos unwrap step
212210
213- ** Returns** : <code >Promise</code > - returns Promise
214211<a name =" KerberosServer " ></a >
215212
216213## KerberosServer
@@ -233,7 +230,6 @@ Perform the client side kerberos unwrap step
233230
234231Processes a single kerberos server-side step using the supplied client data.
235232
236- ** Returns** : <code >Promise</code > - returns Promise
237233<a name =" checkPassword " ></a >
238234
239235## checkPassword(username, password, service, [ defaultRealm] )
@@ -261,7 +257,7 @@ IMPORTANT: This method is vulnerable to KDC spoofing attacks and it should
261257only be used for testing. Do not use this in any production system - your
262258security could be compromised if you do.
263259
264- ** Returns** : <code >Promise</code > - returns Promise
260+ ** Returns** : <code >Promise. & lt ; null & gt ; </code > - returns Promise that rejects if the password is invalid
265261<a name =" principalDetails " ></a >
266262
267263## principalDetails(service, hostname)
@@ -290,7 +286,7 @@ Details are looked up via the `/etc/keytab` file.
290286
291287Initializes a context for client-side authentication with the given service principal.
292288
293- ** Returns** : <code >Promise</code > - returns Promise
289+ ** Returns** : [ <code >Promise. & lt ; KerberosClient & gt ; </code >] ( #KerberosClient ) - returns Promise
294290<a name =" initializeServer " ></a >
295291
296292## initializeServer(service)
@@ -301,4 +297,4 @@ Initializes a context for client-side authentication with the given service prin
301297
302298Initializes a context for server-side authentication with the given service principal.
303299
304- ** Returns** : <code >Promise</code > - returns Promise
300+ ** Returns** : [ <code >Promise. & lt ; KerberosServer & gt ; </code >] ( #KerberosServer ) - returns Promise
0 commit comments