Class DefaultBasicAuthSupplier

    • Constructor Detail

      • DefaultBasicAuthSupplier

        public DefaultBasicAuthSupplier()
    • Method Detail

      • getBasicAuthHeader

        public static String getBasicAuthHeader​(String userName,
                                                String passwd)
      • getBasicAuthHeader

        public static String getBasicAuthHeader​(String userName,
                                                String passwd,
                                                boolean useIso8859)
      • getAuthorization

        public String getAuthorization​(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy,
                                       URI currentURI,
                                       org.apache.cxf.message.Message message,
                                       String fullHeader)
        Description copied from interface: HttpAuthSupplier
        The HTTPConduit makes a call to this method to obtain an Authentication token for http authentication.
        Specified by:
        getAuthorization in interface HttpAuthSupplier
        Parameters:
        authPolicy - credentials for the authentication
        currentURI - The URI we want to connect to
        message - The CXF Message
        fullHeader - The full WWW-Authenticate header or null if preemptive auth
        Returns:
        token for Authenticate string or null if authentication is not possible