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

com.verisec.frejaeid.client.beans.sign.get.SignResult Maven / Gradle / Ivy

package com.verisec.frejaeid.client.beans.sign.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 SignResult extends Result {

    @JsonCreator
    public SignResult(@JsonProperty(value = "signRef") 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 sign transaction reference.
     */
    @JsonProperty(value = "signRef")
    public String getSignRef() {
        return super.getReference();
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy