Deprecated
(4.2) use AuthenticationStrategy
Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: a collection of challenges keyed by names of corresponding authentication schemes.HTTP response. response, HttpContext HTTP context. context)Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host. |
| public boolean | Returns: true if user authentication is required,
false otherwise.HTTP response. response, HttpContext HTTP context. context)Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure |
| public AuthScheme | Returns: authentication scheme to use for authentication.collection of challenges. challenges, HttpResponse HTTP response. response, HttpContext HTTP context. context)Selects one authentication challenge out of all available and
creates and generates |
| getChallenges | back to summary |
|---|---|
| public Map Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.
| |
| isAuthenticationRequested | back to summary |
|---|---|
| public boolean isAuthenticationRequested(HttpResponse response, HttpContext context) Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure
| |
| selectScheme | back to summary |
|---|---|
| public AuthScheme selectScheme(Map<String, Header> challenges, HttpResponse response, HttpContext context) throws AuthenticationException Selects one authentication challenge out of all available and
creates and generates
| |