io.castle.client.internal.json.AuthenticateActionDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of castle-java Show documentation
Show all versions of castle-java Show documentation
Castle adds real-time monitoring of your authentication stack, instantly notifying you and your users
on potential account hijacks.
package io.castle.client.internal.json;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import io.castle.client.model.AuthenticateAction;
import java.lang.reflect.Type;
public class AuthenticateActionDeserializer implements JsonDeserializer {
@Override
public AuthenticateAction deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
return AuthenticateAction.fromAction(json.getAsString());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy