Package org.eclipse.lyo.client
Class JEEFormAuthenticator
java.lang.Object
org.eclipse.lyo.client.JEEFormAuthenticator
- All Implemented Interfaces:
ClientRequestFilter,ClientResponseFilter
public class JEEFormAuthenticator
extends Object
implements ClientRequestFilter, ClientResponseFilter
A filter that can be registered in order to non-preemptively handle JEE Form
based authentication challenges.
- Author:
- jamsden
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(ClientRequestContext requestContext) voidfilter(ClientRequestContext request, ClientResponseContext response) Checks to see if the response is a 401 UNAUTHORIZED.
-
Constructor Details
-
JEEFormAuthenticator
public JEEFormAuthenticator() -
JEEFormAuthenticator
- Parameters:
baseUri- base URI for the server, e.g., https://host:9443/ccmusername- user's credentialspassword-
-
-
Method Details
-
filter
Checks to see if the response is a 401 UNAUTHORIZED. If so, it attempts to authenticate the user, and then retries the request with the updated session information.- Specified by:
filterin interfaceClientResponseFilter- See Also:
-
filter
- Specified by:
filterin interfaceClientRequestFilter
-