All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.castle.client.model.ImpersonatePayload Maven / Gradle / Ivy

Go to download

Castle adds real-time monitoring of your authentication stack, instantly notifying you and your users on potential account hijacks.

There is a newer version: 2.4.3
Show newest version
package io.castle.client.model;

import com.google.gson.JsonObject;

public class ImpersonatePayload {
    private final String userId;
    private final JsonObject context;
    private final JsonObject properties;

    public ImpersonatePayload(String userId, String impersonator, JsonObject contextJson) {
        this.userId = userId;
        this.properties = new JsonObject();
        this.properties.addProperty("impersonator", impersonator);
        this.context = contextJson;
    }

    public ImpersonatePayload(String userId, JsonObject contextJson) {
        this.userId = userId;
        this.properties = new JsonObject();
        this.context = contextJson;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy