void debugPostToEndPoint(String url,
            @Sensitive List<NameValuePair> params,
            String baUsername,
            @Sensitive String baPassword,
            String accessToken,
            final List<NameValuePair> commonHeaders) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "OIDC _SSO RP POST TO URL [" + WebUtils.stripSecretFromUrl(url, "client_secret") + "]");
            Tr.debug(tc, "postToEndpoint: url: " + url + " headers: "
                    + commonHeaders + " params: " + "*****" + " baUsername: "
                    + baUsername + " baPassword: " + (baPassword != null ? "****" : null)
                    + " accessToken: " + accessToken);
            StringBuffer sb = new StringBuffer();
            sb.append("curl -k -v");
            if (commonHeaders != null) {
                for (Iterator<NameValuePair> i = commonHeaders.iterator(); i.hasNext();) {
                    NameValuePair nvp = i.next();
                    sb.append(" -H \"");
                    sb.append(nvp.getName());
                    sb.append(": ");
                    sb.append(nvp.getValue());
                    sb.append("\"");
                }
            }
            if (params != null && params.size() > 0) {
                sb.append(" -d \"");
                for (Iterator<NameValuePair> i = params.iterator(); i.hasNext();) {
                    NameValuePair nvp = i.next();
                    String name = nvp.getName();
                    sb.append(name);
                    sb.append("=");
                    if (name.equals("client_secret")) {
                        sb.append("*****");
                    } else {
                        sb.append(nvp.getValue());
                    }

                    if (i.hasNext()) {
                        sb.append("&");
                    }
                }
                sb.append("\"");
            }
            if (baUsername != null && baPassword != null) {
                sb.append(" -u \"");
                sb.append(baUsername);
                sb.append(":");
                sb.append("****");
                sb.append("\"");
            }
            if (accessToken != null) {
                sb.append(" -H \"Authorization: bearer ");
                sb.append(accessToken);
                sb.append("\"");
            }
            sb.append(" ");
            sb.append(url);
            Tr.debug(tc, "CURL Command: " + sb.toString());
        }
    }
void debugPostToEndPoint ( String url , @ Sensitive List < NameValuePair > params , String baUsername , @ Sensitive String baPassword , String accessToken , final List < NameValuePair > commonHeaders ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "OIDC _SSO RP POST TO URL [" + WebUtils . stripSecretFromUrl ( url , "client_secret" ) + "]" ) ; Tr . debug ( tc , "postToEndpoint: url: " + url + " headers: " + commonHeaders + " params: " + "*****" + " baUsername: " + baUsername + " baPassword: " + ( baPassword != null ? "****" : null ) + " accessToken: " + accessToken ) ; StringBuffer sb = new StringBuffer ( ) ; sb . append ( "curl -k -v" ) ; if ( commonHeaders != null ) { for ( Iterator < NameValuePair > i = commonHeaders . iterator ( ) ; i . hasNext ( ) ; ) { NameValuePair nvp = i . next ( ) ; sb . append ( " -H \"" ) ; sb . append ( nvp . getName ( ) ) ; sb . append ( ": " ) ; sb . append ( nvp . getValue ( ) ) ; sb . append ( "\"" ) ; } } if ( params != null && params . size ( ) > 0 ) { sb . append ( " -d \"" ) ; for ( Iterator < NameValuePair > i = params . iterator ( ) ; i . hasNext ( ) ; ) { NameValuePair nvp = i . next ( ) ; String name = nvp . getName ( ) ; sb . append ( name ) ; sb . append ( "=" ) ; if ( name . equals ( "client_secret" ) ) { sb . append ( "*****" ) ; } else { sb . append ( nvp . getValue ( ) ) ; } if ( i . hasNext ( ) ) { sb . append ( "&" ) ; } } sb . append ( "\"" ) ; } if ( baUsername != null && baPassword != null ) { sb . append ( " -u \"" ) ; sb . append ( baUsername ) ; sb . append ( ":" ) ; sb . append ( "****" ) ; sb . append ( "\"" ) ; } if ( accessToken != null ) { sb . append ( " -H \"Authorization: bearer " ) ; sb . append ( accessToken ) ; sb . append ( "\"" ) ; } sb . append ( " " ) ; sb . append ( url ) ; Tr . debug ( tc , "CURL Command: " + sb . toString ( ) ) ; } }
@param url
@param headers
@param params
@param baUsername
@param baPassword
@param accessToken