Révision 19b58bab
Ajouté par Remy Menard il y a plus de 11 ans
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/TraceEPCAsync.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
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
|
||
public class TraceEPCAsync extends Thread {
|
||
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private final CallbackClient client;
|
||
private final String sessionID;
|
||
private final Identity identity;
|
||
... | ... | |
private final ONSOperation onsOperation;
|
||
private static final Log log = LogFactory.getLog(TraceEPCAsync.class);
|
||
|
||
public TraceEPCAsync(String epc, String sessionID, CallbackClient client, Identity identity) {
|
||
public TraceEPCAsync(String epc, String sessionID, CallbackClient client, Identity identity,
|
||
String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
this.client = client;
|
||
this.sessionID = sessionID;
|
||
this.identity = identity;
|
||
... | ... | |
log.trace("referent ds address found: " + dsAddress);
|
||
}
|
||
log.trace("Start discover");
|
||
DiscoveryOperation dsOp = new DiscoveryOperation(identity, dsAddress, sessionID, client);
|
||
DiscoveryOperation dsOp = new DiscoveryOperation(identity, dsAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword, sessionID, client);
|
||
dsOp.discover(epc);
|
||
}
|
||
}
|
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)