Package com.ibm.fhir.client.impl
Class FHIROAuth2Authenticator
- java.lang.Object
-
- com.ibm.fhir.client.impl.FHIROAuth2Authenticator
-
- All Implemented Interfaces:
javax.ws.rs.client.ClientRequestFilter
public class FHIROAuth2Authenticator extends Object implements javax.ws.rs.client.ClientRequestFilter
This class is responsible for adding the Authorization header to outbound REST API requests.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FHIROAuth2Authenticator()
FHIROAuth2Authenticator(String accessToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(javax.ws.rs.client.ClientRequestContext ctxt)
String
getAccessToken()
void
setAccessToken(String accessToken)
-
-
-
Constructor Detail
-
FHIROAuth2Authenticator
protected FHIROAuth2Authenticator()
-
FHIROAuth2Authenticator
public FHIROAuth2Authenticator(String accessToken)
-
-
Method Detail
-
setAccessToken
public void setAccessToken(String accessToken)
-
getAccessToken
public String getAccessToken()
-
filter
public void filter(javax.ws.rs.client.ClientRequestContext ctxt) throws IOException
- Specified by:
filter
in interfacejavax.ws.rs.client.ClientRequestFilter
- Throws:
IOException
-
-