io.castle.client.model.ImpersonatePayload 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.model;
import com.google.gson.JsonObject;
public class ImpersonatePayload {
private final String userId;
private final String impersonator;
private final JsonObject context;
public ImpersonatePayload(String userId, String impersonator, JsonObject contextJson) {
this.userId = userId;
this.impersonator = impersonator;
this.context = contextJson;
}
public ImpersonatePayload(String userId, JsonObject contextJson) {
this.userId = userId;
this.impersonator = null;
this.context = contextJson;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy