Class SsoTokenConfigurator


  • public class SsoTokenConfigurator
    extends javax.websocket.ClientEndpointConfig.Configurator
    Add an agent's SSO Token into the initial HTTP request.
    • Constructor Detail

      • SsoTokenConfigurator

        public SsoTokenConfigurator​(String headerName,
                                    String token)
        Constructs a ClientEndpointConfig.Configurator that would inject the given token value in the provided headerName.
        Parameters:
        headerName - header where AM expects the SSO token
        token - SSO token
    • Method Detail

      • beforeRequest

        public void beforeRequest​(Map<String,​List<String>> headers)
        Overrides:
        beforeRequest in class javax.websocket.ClientEndpointConfig.Configurator