public class AuthExchange
extends java.lang.Object
AuthScheme
used for request authorization as well as a collection of backup authentication options if available.| Modifier and Type | Class and Description |
|---|---|
static class |
AuthExchange.State |
| Constructor and Description |
|---|
AuthExchange() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Queue<AuthScheme> |
getAuthOptions()
Returns available auth options.
|
AuthScheme |
getAuthScheme()
Returns actual
AuthScheme. |
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(java.util.Queue<AuthScheme> authOptions)
Updates the auth state with a queue of auth options.
|
void |
setState(AuthExchange.State state) |
java.lang.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 void select(AuthScheme authScheme)
AuthScheme and clears auth options.authScheme - auth scheme. May not be null.public java.util.Queue<AuthScheme> getAuthOptions()
public void setOptions(java.util.Queue<AuthScheme> authOptions)
authOptions - a queue of auth options. May not be null or empty.public java.lang.String toString()
toString in class java.lang.Object