AuthState.java (httpcomponents-client-4.5.5-src) | : | AuthState.java (httpcomponents-client-4.5.6-src) | ||
---|---|---|---|---|
skipping to change at line 137 | skipping to change at line 137 | |||
* Returns {@code true} if {@link AuthOption}s are available, {@code false} | * Returns {@code true} if {@link AuthOption}s are available, {@code false} | |||
* otherwise. | * otherwise. | |||
* | * | |||
* @since 4.2 | * @since 4.2 | |||
*/ | */ | |||
public boolean hasAuthOptions() { | public boolean hasAuthOptions() { | |||
return this.authOptions != null && !this.authOptions.isEmpty(); | return this.authOptions != null && !this.authOptions.isEmpty(); | |||
} | } | |||
/** | /** | |||
* Returns {@code true} if the actual authentication scheme is connection ba | ||||
sed. | ||||
* | ||||
* @since 4.5.6 | ||||
*/ | ||||
public boolean isConnectionBased() { | ||||
return this.authScheme != null && this.authScheme.isConnectionBased(); | ||||
} | ||||
/** | ||||
* Updates the auth state with a queue of {@link AuthOption}s. | * Updates the auth state with a queue of {@link AuthOption}s. | |||
* | * | |||
* @param authOptions a queue of auth options. May not be null or empty. | * @param authOptions a queue of auth options. May not be null or empty. | |||
* | * | |||
* @since 4.2 | * @since 4.2 | |||
*/ | */ | |||
public void update(final Queue<AuthOption> authOptions) { | public void update(final Queue<AuthOption> authOptions) { | |||
Args.notEmpty(authOptions, "Queue of auth options"); | Args.notEmpty(authOptions, "Queue of auth options"); | |||
this.authOptions = authOptions; | this.authOptions = authOptions; | |||
this.authScheme = null; | this.authScheme = null; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 10 lines changed or added |