Révision bf9c3717
Ajouté par Remy Menard il y a environ 11 ans
ETa/ETa/src/main/java/fr/unicaen/iota/eta/capture/CaptureCheck.java | ||
---|---|---|
* @return <code>true</code> if the capture is permitted.
|
||
*/
|
||
public boolean xacmlCheck(List<EPCISEventType> epcisEventList, String user) {
|
||
user = fr.unicaen.iota.mu.Utils.formatId(user);
|
||
for (EPCISEventType epcisEvent : epcisEventList) {
|
||
String owner = Utils.getEventOwner(epcisEvent);
|
||
if (owner == null) {
|
||
owner = user;
|
||
}
|
||
owner = fr.unicaen.iota.mu.Utils.formatId(owner);
|
||
if (epcisEvent instanceof ObjectEventType) {
|
||
if (!checkObjectEvent((ObjectEventType) epcisEvent, user, owner)) {
|
||
return false;
|
||
... | ... | |
* @return <code>true</code> if permitted.
|
||
*/
|
||
private boolean xacmlCheckMasterDType(List<VocabularyElementType> vocElList, String user) {
|
||
user = fr.unicaen.iota.mu.Utils.formatId(user);
|
||
Iterator<VocabularyElementType> iterVoc = vocElList.iterator();
|
||
while (iterVoc.hasNext()) {
|
||
VocabularyElementType vocEl = iterVoc.next();
|
||
... | ... | |
if (Constants.URN_IOTA.equals(elem.getName().getNamespaceURI()) &&
|
||
Constants.EXTENSION_OWNER_ID.equals(elem.getName().getLocalPart())) {
|
||
String owner = elem.getValue().toString();
|
||
owner = fr.unicaen.iota.mu.Utils.formatId(owner);
|
||
XACMLEPCISMasterData xacmlMasterData = new XACMLEPCISMasterData(owner, id);
|
||
if (!xacmlCheckMasterData(xacmlMasterData, user)) {
|
||
return false;
|
Formats disponibles : Unified diff
Version 1.99
- a few bugs fixed!
- new testing application to capture events
- new options to the command line to configure the public/private keys
for TLS and for signature
- new method more accurate than "traceEPC": the events are sorted by
EPCIS
- New options added to the command line
- user can be identified by alias, if the DN of his certificate is
incompatible with the LDAP directory
- new shell script to configure the LDAP directory (same
functionnalities as IoTa-Installer)
- installs and configures LaMBDa
- finer certificate mangagement
- EpcILoN correctly subscribe with TLS to ETa
- new figure for LaMBDa
- shows data flows between PHI and YPSilon
- sets DS and DSeTa in different schemas