Class 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 Detail

      • FHIROAuth2Authenticator

        protected FHIROAuth2Authenticator()
      • FHIROAuth2Authenticator

        public FHIROAuth2Authenticator​(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 interface javax.ws.rs.client.ClientRequestFilter
        Throws:
        java.io.IOException