Class JsonCanonicalizer


  • @Deprecated
    public final class JsonCanonicalizer
    extends java.lang.Object
    Deprecated.
    Use Jcs instead.
    Legacy entry point for JSON canonicalization.

    This class has been superseded by Jcs and remains only for backward compatibility. All methods in this class delegate directly to their equivalents in Jcs.

    • Constructor Detail

      • JsonCanonicalizer

        public JsonCanonicalizer()
        Deprecated.
    • Method Detail

      • canonize

        @Deprecated
        public static final java.lang.String canonize​(jakarta.json.JsonValue value)
        Deprecated.
        Canonicalizes a JSON value according to RFC 8785.
        Parameters:
        value - the JSON value to canonicalize
        Returns:
        the canonicalized JSON string
      • canonize

        @Deprecated
        public static final void canonize​(jakarta.json.JsonValue value,
                                          java.io.Writer writer)
                                   throws java.io.IOException
        Canonicalizes a JSON value and writes the result to the given writer.
        Parameters:
        value - the JSON value to canonicalize
        writer - the writer to output the canonicalized JSON
        Throws:
        java.io.IOException - if an I/O error occurs while writing
      • canonizeNumber

        @Deprecated
        public static final void canonizeNumber​(jakarta.json.JsonNumber number,
                                                java.io.Writer writer)
                                         throws java.io.IOException
        Canonicalizes a JSON number and writes the result to the given writer.
        Parameters:
        number - the JSON number to canonicalize
        writer - the writer to output the canonicalized representation
        Throws:
        java.io.IOException - if an I/O error occurs while writing
      • canonizeArray

        @Deprecated
        public static final void canonizeArray​(jakarta.json.JsonArray value,
                                               java.io.Writer writer)
                                        throws java.io.IOException
        Canonicalizes a JSON array and writes the result to the given writer.
        Parameters:
        value - the JSON array to canonicalize
        writer - the writer to output the canonicalized JSON
        Throws:
        java.io.IOException - if an I/O error occurs while writing
      • escape

        @Deprecated
        public static final java.lang.String escape​(java.lang.String value)
        Deprecated.
        Escapes a JSON property name according to canonicalization rules.
        Parameters:
        value - the property name to escape
        Returns:
        the escaped property name