Skip to content

Commit

Permalink
Update project to latest tag verificafirma-crypto-beans-1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
parerworker committed Nov 14, 2024
1 parent 08561ff commit 83f84e5
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>verificafirma-crypto-beans</artifactId>
<version>1.5.1-SNAPSHOT</version>
<version>1.6.0</version>
<packaging>jar</packaging>
<name>Verifica firma crypto beans</name>
<description>Libreria contenente i beans che integrano i modelli pojo per la verifica firma con microservizio crypto</description>

<parent>
<groupId>it.eng.parer</groupId>
<artifactId>parer-pom</artifactId>
<version>6.4.0</version>
<version>6.4.1</version>
</parent>


Expand All @@ -24,19 +24,19 @@
<jaxb.api.version>2.3.0</jaxb.api.version>
</properties>

<scm>
<scm>
<developerConnection>scm:git:https://github.com/RegioneER/parer-verificafirma-crypto-beans.git</developerConnection>
<tag>HEAD</tag>
</scm>

<distributionManagement>
<distributionManagement>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/RegioneER/parer-verificafirma-crypto-beans</url>
</repository>
</distributionManagement>

<repositories>
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/RegioneER/parer-framework-parerpom</url>
Expand Down
72 changes: 72 additions & 0 deletions src/main/java/it/eng/parer/crypto/model/CryptoSignedP7mUri.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* Engineering Ingegneria Informatica S.p.A.
*
* Copyright (C) 2023 Regione Emilia-Romagna
* <p/>
* This program is free software: you can redistribute it and/or modify it under the terms of
* the GNU Affero General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
* <p/>
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
* <p/>
* You should have received a copy of the GNU Affero General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
*/

package it.eng.parer.crypto.model;

import java.io.Serializable;
import java.net.URI;

import org.apache.commons.lang3.StringUtils;

import jakarta.validation.constraints.NotNull;

/**
* Modello per i file p7m su un URI (tendenzialmente utilizzando le PRE-SIGNED
* URL dell'object storage).
*/
public class CryptoSignedP7mUri implements Serializable {

private static final long serialVersionUID = 6539537678266529865L;

@NotNull(message = "URI del documento firmato p7m deve essere valorizzato correttamente")
private URI uri;

private String originalFileName;

public CryptoSignedP7mUri() {
super();
}

public CryptoSignedP7mUri(URI uri) {
super();
this.uri = uri;
this.originalFileName = StringUtils.EMPTY;
}

public CryptoSignedP7mUri(URI uri, String originalFileName) {
super();
this.uri = uri;
this.originalFileName = originalFileName;
}

public URI getUri() {
return uri;
}

public void setUri(URI uri) {
this.uri = uri;
}

public String getOriginalFileName() {
return originalFileName;
}

public void setOriginalFileName(String originalFileName) {
this.originalFileName = originalFileName;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
*/
public class CryptoDataToValidateDataUri implements Serializable {

private static final long serialVersionUID = 2129598057865119908L;

@NotNull(message = "Il percorso del componente principale deve essere valorizzate correttamente")
private URI contenuto;
private List<URI> firme;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/it/eng/parer/crypto/model/TestReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class TestReport {
*
* @throws JAXBException
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testMarshaller() throws JAXBException {

Expand Down

0 comments on commit 83f84e5

Please sign in to comment.