io.castle.client.model.Verdict 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;
/**
* Model of the outcome of an authenticate call to the Castle API.
*/
public class Verdict {
/**
* AuthenticateAction returned by a call to the CastleAPI, or configured by a failover strategy.
*/
private AuthenticateAction action;
/**
* String representing a user ID associated with an authenticate call.
*/
private String userId;
/**
* True if the SDK resorted the {@code AuthenticateFailoverStrategy} configured.
*/
private boolean failover;
/**
* Explains the reason why the {@code AuthenticateFailoverStrategy} was used.
*/
private String failoverReason;
public AuthenticateAction getAction() {
return action;
}
public void setAction(AuthenticateAction action) {
this.action = action;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public boolean isFailover() {
return failover;
}
public void setFailover(boolean failover) {
this.failover = failover;
}
public String getFailoverReason() {
return failoverReason;
}
public void setFailoverReason(String failoverReason) {
this.failoverReason = failoverReason;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy