Révision 19b58bab
Ajouté par Remy Menard il y a plus de 11 ans
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/CallbackCheck.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
import java.util.Date;
|
||
import java.util.Iterator;
|
||
import java.util.List;
|
||
import org.fosstrak.epcis.model.AggregationEventType;
|
||
import org.fosstrak.epcis.model.BusinessTransactionType;
|
||
import org.fosstrak.epcis.model.EPC;
|
||
import org.fosstrak.epcis.model.EPCISEventType;
|
||
import org.fosstrak.epcis.model.ObjectEventType;
|
||
import org.fosstrak.epcis.model.QuantityEventType;
|
||
import org.fosstrak.epcis.model.TransactionEventType;
|
||
import org.fosstrak.epcis.model.*;
|
||
import org.fosstrak.epcis.utils.TimeParser;
|
||
import org.w3c.dom.Element;
|
||
|
||
... | ... | |
private EPCISPEP epcisPEP;
|
||
|
||
public CallbackCheck() {
|
||
epcisPEP = new EPCISPEP(Constants.XACML_URL);
|
||
epcisPEP = new EPCISPEP(Constants.XACML_URL, Constants.PKS_FILENAME, Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
|
||
}
|
||
|
||
public boolean xacmlCheck(XACMLEPCISEvent xacmlEvent, String user) {
|
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)