Projet

Général

Profil

« Précédent | Suivant » 

Révision 19b58bab

Ajouté par Remy Menard il y a plus de 11 ans

Version 1.9

  • All:
    - use TLS for secured links
    - SigMa is now fully functionnal
    - completed documention
    - a lot of bugs fixed!
  • SigMa:
    - signature creation from the canonical form of the event
    - signature creation using ECDSA algorithm
    - signature is correctly verified
  • ETa:
    - manage the extension identifying the owner of the event
    - if no identity is provided, the identity of the certificate is used
  • EpcisPHi:
    - access to the web interface of policy management is made by
    certificate
  • OMeGa:
    - if no identity is provided, the identity of the certificate is used
  • IoTa-Installer:
    - create and use certificates for TLS
    - configure Apache Tomcat for TLS
  • Greyc letters figures:
    - show SigMa library (SigMa-Commons)

Voir les différences:

ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/servlet/Services.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 com.sun.xacml.ctx.Result;
import fr.unicaen.iota.epcisphi.utils.*;
import fr.unicaen.iota.epcisphi.xacml.ihm.Module;
import fr.unicaen.iota.eta.user.client.GatewayClient;
import fr.unicaen.iota.eta.user.client.UserClient;
import fr.unicaen.iota.eta.user.userservice_wsdl.ImplementationExceptionResponse;
import fr.unicaen.iota.eta.user.userservice_wsdl.SecurityExceptionResponse;
import fr.unicaen.iota.xacml.pep.MethodNamesAdmin;
......
try {
String partner = user.getPartnerID();
String hashPass = SHA1.makeSHA1Hash(pass);
GatewayClient client = new GatewayClient(Constants.USERSERVICE_ADDRESS);
UserClient client = new UserClient(Constants.USERSERVICE_ADDRESS, Constants.PKS_FILENAME,
Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
client.userCreate(sessionId, login, hashPass, partner, 30);
} catch (NoSuchAlgorithmException ex) {
log.error("Algorithm error", ex);
......
public void deleteUser(String sessionId, User user, String login) throws ServiceException {
checkAccess(user, Module.adminModule, "userDelete");
try {
GatewayClient client = new GatewayClient(Constants.USERSERVICE_ADDRESS);
UserClient client = new UserClient(Constants.USERSERVICE_ADDRESS, Constants.PKS_FILENAME,
Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
client.userDelete(sessionId, login);
} catch (ImplementationExceptionResponse ex) {
log.error("Internal error", ex);
......
public boolean createAccount(String sessionId, User user, String partnerId, String login, String pass) throws ServiceException {
checkAccess(user, Module.adminModule, "superadmin");
try {
GatewayClient client = new GatewayClient(Constants.USERSERVICE_ADDRESS);
UserClient client = new UserClient(Constants.USERSERVICE_ADDRESS, Constants.PKS_FILENAME,
Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
boolean found = false;
try {
client.userInfo(sessionId, login);

Formats disponibles : Unified diff