com.lacunasoftware.restpkicore.ModelConverters 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;
class ModelConverters {
static DocumentModel toDocumentModel(SignatureSessionDocumentSummary model){
DocumentModel documentModel = new DocumentModel();
documentModel.setId(model.getId());
documentModel.setKey(model.getKey());
documentModel.setFormattedKey(model.getFormattedKey());
documentModel.setOriginalFile(model.getOriginalFile());
documentModel.setSignedFile(model.getSignedFile());
documentModel.setMarkedFile(model.getMarkedFile());
documentModel.setSignatureType(model.getSignatureType());
documentModel.setAvailableUntil(model.getAvailableUntil());
return documentModel;
}
static Signer toSigner(SignerModel signerModel){
Signer signer = new Signer(signerModel);
return signer;
}
}