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

com.lacunasoftware.restpkicore.SignatureSession Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package com.lacunasoftware.restpkicore;

import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;

/**
 * SignatureSession
 */
public class SignatureSession {

    private SignatureSessionModel model;
    private List documents;

    public UUID getId() {
        return model.getId();
    }

    public SignatureSessionStatus getStatus() {
        return model.getStatus();
    }

    public String getProcessingErrorCode(){
        return model.getProcessingErrorCode();
    }

    public String getCallbackArgument() {
        return model.getCallbackArgument();
    }

    public CertificateModel getSignerCertificate(){
        return model.getSignerCertificate();
    }

    public List getDocuments() {
        return documents;
    }

    public SignatureSession(RestPkiService service, SignatureSessionModel model) {
        this.model = model;
        this.documents = (model.getDocuments()).stream()
                .map(s -> new SignatureSessionDocument(service,s))
                .collect(Collectors.toList());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy