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

io.castle.client.model.Verdict 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;

/**
 * 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