Class FHIROAuth2Authenticator
- java.lang.Object
-
- org.linuxforhealth.fhir.client.impl.FHIROAuth2Authenticator
-
- All Implemented Interfaces:
javax.ws.rs.client.ClientRequestFilter
public class FHIROAuth2Authenticator extends java.lang.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(java.lang.String accessToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(javax.ws.rs.client.ClientRequestContext ctxt)
java.lang.String
getAccessToken()
void
setAccessToken(java.lang.String accessToken)
-
-
-
Method Detail
-
setAccessToken
public void setAccessToken(java.lang.String accessToken)
-
getAccessToken
public java.lang.String getAccessToken()
-
filter
public void filter(javax.ws.rs.client.ClientRequestContext ctxt) throws java.io.IOException
- Specified by:
filter
in interfacejavax.ws.rs.client.ClientRequestFilter
- Throws:
java.io.IOException
-
-