Package dev.sigstore.json
Enum GsonSupplier
- java.lang.Object
-
- java.lang.Enum<GsonSupplier>
-
- dev.sigstore.json.GsonSupplier
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GsonSupplier>,java.util.function.Supplier<com.google.gson.Gson>
public enum GsonSupplier extends java.lang.Enum<GsonSupplier> implements java.util.function.Supplier<com.google.gson.Gson>
Supplies a Gson with custom byte to base64 serialization, and no html escaping. This instance of GSON is NOT html/url safe, but makes more sense if you want to do things for the serialization of requests between sigstore and this client -- and should probably be used for any api call to sigstore that expects JSON.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GSON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.Gsonget()static GsonSuppliervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GsonSupplier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GSON
public static final GsonSupplier GSON
-
-
Method Detail
-
values
public static GsonSupplier[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GsonSupplier c : GsonSupplier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GsonSupplier valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
get
public com.google.gson.Gson get()
- Specified by:
getin interfacejava.util.function.Supplier<com.google.gson.Gson>
-
-