com.lacunasoftware.restpkicore.SignatureSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restpkicore-client Show documentation
Show all versions of restpkicore-client Show documentation
Classes to consume Lacuna Software REST PKI Core
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());
}
}