Class HttpBasicAuthLogicHandler


  • public class HttpBasicAuthLogicHandler
    extends AbstractAuthLogicHandler
    HttpBasicAuthLogicHandler.java - HTTP Basic authentication mechanism logic handler.
    Since:
    MINA 2.0.0-M3
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • HttpBasicAuthLogicHandler

        public HttpBasicAuthLogicHandler​(ProxyIoSession proxyIoSession)
                                  throws ProxyAuthException
        Build an HttpBasicAuthLogicHandler
        Parameters:
        proxyIoSession - The proxy session
        Throws:
        ProxyAuthException - If we had a probelm during the proxy authentication
    • Method Detail

      • createAuthorization

        public static java.lang.String createAuthorization​(java.lang.String username,
                                                           java.lang.String password)
        Computes the authorization header value.
        Parameters:
        username - the user name
        password - the user password
        Returns:
        the authorization header value as a string