Révision 19b58bab
Ajouté par Remy Menard il y a plus de 11 ans
EpcILoN/src/main/java/fr/unicaen/iota/epcilon/query/UnsubscribedServlet.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* 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
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* 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
|
||
... | ... | |
package fr.unicaen.iota.epcilon.query;
|
||
|
||
import fr.unicaen.iota.epcilon.conf.Configuration;
|
||
import fr.unicaen.iota.eta.query.QueryControlClientTLS;
|
||
import java.io.IOException;
|
||
import java.rmi.RemoteException;
|
||
import javax.servlet.ServletException;
|
||
... | ... | |
import javax.servlet.http.HttpServletResponse;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
import org.fosstrak.epcis.queryclient.QueryControlClient;
|
||
import org.fosstrak.epcis.soap.ImplementationExceptionResponse;
|
||
import org.fosstrak.epcis.soap.NoSuchSubscriptionExceptionResponse;
|
||
import org.fosstrak.epcis.soap.SecurityExceptionResponse;
|
||
... | ... | |
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
|
||
throws ServletException, IOException {
|
||
try {
|
||
QueryControlClient client = new QueryControlClient(Configuration.DEFAULT_QUERY_CLIENT_ADDRESS);
|
||
QueryControlClientTLS client = new QueryControlClientTLS(Configuration.DEFAULT_QUERY_CLIENT_ADDRESS,
|
||
Configuration.PKS_FILENAME, Configuration.PKS_PASSWORD,
|
||
Configuration.TRUST_PKS_FILENAME, Configuration.TRUST_PKS_PASSWORD);
|
||
try {
|
||
client.unsubscribe(Configuration.SUBSCRIPTION_KEY);
|
||
LOG.info("Subscription stoppped");
|
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)