Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/open-eid/SiVa into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
naare committed Nov 7, 2022
2 parents f40b7c2 + ca4a8a3 commit 6d1614a
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<groupId>ee.openid.siva</groupId>
<artifactId>siva</artifactId>
<version>3.5.4</version>
<version>3.6.0</version>
<packaging>pom</packaging>
<name>SiVa Digitally signed documents validation service</name>
<url>https://github.com/open-eid/SiVa</url>
Expand Down
4 changes: 2 additions & 2 deletions siva-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
<parent>
<artifactId>siva</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>siva-parent</artifactId>
<packaging>pom</packaging>
<name>SiVa webapp and other core modules</name>
<version>3.5.4</version>
<version>3.6.0</version>

<modules>
<module>siva-validation-proxy</module>
Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-monitoring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-sample-application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-signature-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-statistics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-validation-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion siva-parent/siva-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>siva-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>validation-services-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion validation-services-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>siva</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<artifactId>validation-services-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import ee.openeid.siva.validation.service.signature.policy.ConstraintLoadingSignaturePolicyService;
import ee.openeid.tsl.configuration.TSLLoaderConfigurationProperties;
import ee.openeid.tsl.configuration.TSLValidationKeystoreProperties;
import ee.openeid.tsl.keystore.DSSKeyStoreFactoryBean;
import org.apache.commons.lang3.StringUtils;
import org.digidoc4j.Configuration;
import org.digidoc4j.ExternalConnectionType;
Expand All @@ -30,6 +31,8 @@
import org.springframework.context.annotation.Profile;
import org.springframework.core.io.ClassPathResource;

import java.io.File;

@SpringBootConfiguration
@EnableAutoConfiguration
@EnableConfigurationProperties({
Expand Down Expand Up @@ -81,7 +84,8 @@ private Configuration createConfiguration(Configuration.Mode mode) {
configuration.setSslTruststoreTypeFor(ExternalConnectionType.TSL, tslLoaderConfigurationProperties.getSslTruststoreType());
configuration.setLotlLocation(tslLoaderConfigurationProperties.getUrl());
configuration.setLotlPivotSupportEnabled(tslLoaderConfigurationProperties.isLotlPivotSupportEnabled());
configuration.setLotlTruststorePath(tslValidationKeystoreProperties.getFilename());
String sivaLotlTruststorePath = DSSKeyStoreFactoryBean.getDssDataFolder() + File.separatorChar + tslValidationKeystoreProperties.getFilename();
configuration.setLotlTruststorePath(sivaLotlTruststorePath);
configuration.setLotlTruststorePassword(tslValidationKeystoreProperties.getPassword());
configuration.setLotlTruststoreType(tslValidationKeystoreProperties.getType());
return configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>validation-services-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion validation-services-parent/tsl-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>validation-services-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public class DSSKeyStoreFactoryBean extends AbstractFactoryBean<KeyStoreCertificateSource> {
private static final Logger KEY_STORE_LOGGER = LoggerFactory.getLogger(DSSKeyStoreFactoryBean.class);
private static final String ENVIRONMENT_VARIABLE_DSS_DATA_FOLDER = "DSS_DATA_FOLDER";
public static final String ENVIRONMENT_VARIABLE_DSS_DATA_FOLDER = "DSS_DATA_FOLDER";

private String keyStoreType;
private String keyStoreFilename;
Expand Down Expand Up @@ -88,7 +88,7 @@ private File getKeyStoreFile() {
return keystoreFile;
}

private String getDssDataFolder() {
public static String getDssDataFolder() {
String dssDataFolder = System.getProperty(ENVIRONMENT_VARIABLE_DSS_DATA_FOLDER);
if (StringUtils.isNotEmpty(dssDataFolder)) {
KEY_STORE_LOGGER.info(ENVIRONMENT_VARIABLE_DSS_DATA_FOLDER + " found as system property : " + dssDataFolder);
Expand Down
2 changes: 1 addition & 1 deletion validation-services-parent/validation-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>validation-services-parent</artifactId>
<groupId>ee.openid.siva</groupId>
<version>3.5.4</version>
<version>3.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit 6d1614a

Please sign in to comment.