Révision 19b58bab
Ajouté par Remy Menard il y a plus de 11 ans
PSi/src/main/java/fr/unicaen/iota/simulator/util/Config.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
public static String ONS_ADDRESS;
|
||
public static String ONS_TLD_DOMAIN;
|
||
public static boolean sign;
|
||
public static String keystore;
|
||
public static String keystore_password;
|
||
public static String sigma_keystore;
|
||
public static String sigma_keystore_password;
|
||
public static String pks_filename;
|
||
public static String pks_password;
|
||
public static String trust_pks_filename;
|
||
public static String trust_pks_password;
|
||
public static String eventOwner;
|
||
|
||
static {
|
||
try {
|
||
... | ... | |
ONS_ADDRESS = props.getProperty("ons-address", "localhost");
|
||
ONS_TLD_DOMAIN = props.getProperty("ons-tld-domain", "ons-peer.com.");
|
||
sign = Boolean.valueOf(props.getProperty("sign"));
|
||
keystore = props.getProperty("keystore");
|
||
keystore_password = props.getProperty("keystore-password");
|
||
sigma_keystore = props.getProperty("sigma-keystore");
|
||
sigma_keystore_password = props.getProperty("sigma-keystore-password");
|
||
pks_filename = props.getProperty("pks-filename", "privatekeys.jks");
|
||
pks_password = props.getProperty("pks-password", "changeit");
|
||
trust_pks_filename = props.getProperty("trust-pks-filename", "publickeys.jks");
|
||
trust_pks_password = props.getProperty("trust-pks-password", "changeit");
|
||
eventOwner = props.getProperty("event-owner", "anonymous");
|
||
} catch (Throwable e) {
|
||
LogFactory.getLog(Config.class).fatal("Problem while reading 'config/PTNet.properties'", e);
|
||
}
|
Formats disponibles : Unified diff
Version 1.9
- use TLS for secured links
- SigMa is now fully functionnal
- completed documention
- a lot of bugs fixed!
- signature creation from the canonical form of the event
- signature creation using ECDSA algorithm
- signature is correctly verified
- manage the extension identifying the owner of the event
- if no identity is provided, the identity of the certificate is used
- access to the web interface of policy management is made by
certificate
- if no identity is provided, the identity of the certificate is used
- create and use certificates for TLS
- configure Apache Tomcat for TLS
- show SigMa library (SigMa-Commons)