public class AuthExchange extends Object
AuthScheme
used for request authorization as well as a collection of backup authentication options if available.| 限定符和类型 | 类和说明 |
|---|---|
static class |
AuthExchange.State |
| 构造器和说明 |
|---|
AuthExchange() |
| 限定符和类型 | 方法和说明 |
|---|---|
Queue<AuthScheme> |
getAuthOptions()
Returns available auth options.
|
AuthScheme |
getAuthScheme()
Returns actual
AuthScheme. |
String |
getPathPrefix() |
AuthExchange.State |
getState() |
boolean |
isConnectionBased()
Returns
true if the actual authentication scheme is connection based. |
void |
reset() |
void |
select(AuthScheme authScheme)
Resets the auth state with
AuthScheme and clears auth options. |
void |
setOptions(Queue<AuthScheme> authOptions)
Updates the auth state with a queue of auth options.
|
void |
setPathPrefix(String pathPrefix) |
void |
setState(AuthExchange.State state) |
String |
toString() |
public void reset()
public AuthExchange.State getState()
public void setState(AuthExchange.State state)
public AuthScheme getAuthScheme()
AuthScheme. May be null.public boolean isConnectionBased()
true if the actual authentication scheme is connection based.public String getPathPrefix()
public void setPathPrefix(String pathPrefix)
public void select(AuthScheme authScheme)
AuthScheme and clears auth options.authScheme - auth scheme. May not be null.public Queue<AuthScheme> getAuthOptions()
public void setOptions(Queue<AuthScheme> authOptions)
authOptions - a queue of auth options. May not be null or empty.Copyright © 2023. All rights reserved.