Package com.apicatalog.jcs
Class JsonCanonicalizer
- java.lang.Object
-
- com.apicatalog.jcs.JsonCanonicalizer
-
@Deprecated public final class JsonCanonicalizer extends java.lang.ObjectDeprecated.UseJcsinstead.Legacy entry point for JSON canonicalization.This class has been superseded by
Jcsand remains only for backward compatibility. All methods in this class delegate directly to their equivalents inJcs.
-
-
Constructor Summary
Constructors Constructor Description JsonCanonicalizer()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.Stringcanonize(jakarta.json.JsonValue value)Deprecated.static voidcanonize(jakarta.json.JsonValue value, java.io.Writer writer)Deprecated.static voidcanonizeArray(jakarta.json.JsonArray value, java.io.Writer writer)Deprecated.static voidcanonizeNumber(jakarta.json.JsonNumber number, java.io.Writer writer)Deprecated.static java.lang.Stringescape(java.lang.String value)Deprecated.UseJcs.escape(String).
-
-
-
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.IOExceptionDeprecated.Canonicalizes a JSON value and writes the result to the given writer.- Parameters:
value- the JSON value to canonicalizewriter- 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.IOExceptionDeprecated.Canonicalizes a JSON number and writes the result to the given writer.- Parameters:
number- the JSON number to canonicalizewriter- 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.IOExceptionDeprecated.Canonicalizes a JSON array and writes the result to the given writer.- Parameters:
value- the JSON array to canonicalizewriter- 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.UseJcs.escape(String).Escapes a JSON property name according to canonicalization rules.- Parameters:
value- the property name to escape- Returns:
- the escaped property name
-
-