congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
HttpRequestCanonicalizer.safeToString
Code IndexAdd Tabnine to your IDE (free)

How to use
safeToString
method
in
com.atlassian.jwt.core.HttpRequestCanonicalizer

Best Java code snippets using com.atlassian.jwt.core.HttpRequestCanonicalizer.safeToString (Showing top 1 results out of 315)

origin: com.atlassian.jwt/jwt-core

/**
 * Write a form-urlencoded document into the given stream, containing the
 * given sequence of name/parameter pairs.
 */
private static void percentEncode(Iterable<? extends Map.Entry<String, String[]>> parameters, OutputStream into) throws IOException
{
  if (parameters != null)
  {
    boolean first = true;
    for (Map.Entry<String, String[]> parameter : parameters)
    {
      if (first)
      {
        first = false;
      }
      else
      {
        into.write(JwtUtil.QUERY_PARAMS_SEPARATOR);
      }
      into.write(JwtUtil.percentEncode(safeToString(parameter.getKey())).getBytes());
      into.write('=');
      List<String> percentEncodedValues = new ArrayList<String>(parameter.getValue().length);
      for (String value : parameter.getValue())
      {
        percentEncodedValues.add(JwtUtil.percentEncode(value));
      }
      into.write(StringUtils.join(percentEncodedValues, ENCODED_PARAM_VALUE_SEPARATOR).getBytes());
    }
  }
}
com.atlassian.jwt.coreHttpRequestCanonicalizersafeToString

Popular methods of HttpRequestCanonicalizer

  • canonicalize
    Assemble the components of the HTTP request into the correct format so that they can be signed or ha
  • computeCanonicalRequestHash
    Canonicalize the given CanonicalHttpRequest and hash it. This request hash can be included as a JWT
  • canonicalizeMethod
  • canonicalizeQueryParameters
  • canonicalizeUri
  • getParameters
    Retrieve the original parameters from a sorted collection.
  • percentEncode
    Write a form-urlencoded document into the given stream, containing the given sequence of name/parame

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now