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

com.verisec.frejaeid.client.beans.authentication.get.AuthenticationResult Maven / Gradle / Ivy

package com.verisec.frejaeid.client.beans.authentication.get;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.verisec.frejaeid.client.beans.general.RequestedAttributes;
import com.verisec.frejaeid.client.beans.common.Result;
import com.verisec.frejaeid.client.enums.TransactionStatus;

/**
 *
 * Contains transaction reference, transaction status, details and requested
 * attributes.
 *
 */
public class AuthenticationResult extends Result {

    @JsonCreator
    public AuthenticationResult(@JsonProperty(value = "authRef") String reference, @JsonProperty(value = "status") TransactionStatus status,
            @JsonProperty(value = "details") String details, @JsonProperty(value = "requestedAttributes") RequestedAttributes requestedAttributes) {
        super(reference, status, details, requestedAttributes);
    }

    /**
     * @return A unique authentication transaction reference.
     */
    @JsonProperty(value = "authRef")
    public String getAuthRef() {
        return super.getReference();
    }

    @Override
    public String toString() {
        return "AuthenticationResult{" + super.toString() + '}';
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy