class ShiroAuthenticator implements Authenticator {

   @Override
   public FullHttpResponse authenticateRequest(Channel channel, String username, String password, String isPublic, ByteBuf responseContentIfSuccess) {
      UsernamePasswordToken token = new UsernamePasswordToken(username, password);
      token.setHost(((InetSocketAddress) channel.remoteAddress()).getHostString());
      token.setRememberMe(!"true".equalsIgnoreCase(isPublic));
      return authenticateRequest(channel, token, responseContentIfSuccess);
   }

   @Inject public  ShiroAuthenticator(CookieConfig cookieConfig, ClientFactory clientFactory, BridgeMetrics metrics, SessionConfig config);

}