2020
2121import de .rwth .idsg .steve .ocpp .ChargePointServiceInvoker ;
2222import de .rwth .idsg .steve .ocpp .task .CancelReservationTask ;
23+ import de .rwth .idsg .steve .ocpp .task .CertificateSignedTask ;
2324import de .rwth .idsg .steve .ocpp .task .ChangeAvailabilityTask ;
2425import de .rwth .idsg .steve .ocpp .task .ChangeConfigurationTask ;
2526import de .rwth .idsg .steve .ocpp .task .ClearCacheTask ;
2627import de .rwth .idsg .steve .ocpp .task .ClearChargingProfileTask ;
2728import de .rwth .idsg .steve .ocpp .task .DataTransferTask ;
29+ import de .rwth .idsg .steve .ocpp .task .DeleteCertificateTask ;
30+ import de .rwth .idsg .steve .ocpp .task .ExtendedTriggerMessageTask ;
2831import de .rwth .idsg .steve .ocpp .task .GetCompositeScheduleTask ;
2932import de .rwth .idsg .steve .ocpp .task .GetConfigurationTask ;
3033import de .rwth .idsg .steve .ocpp .task .GetDiagnosticsTask ;
34+ import de .rwth .idsg .steve .ocpp .task .GetInstalledCertificateIdsTask ;
3135import de .rwth .idsg .steve .ocpp .task .GetLocalListVersionTask ;
36+ import de .rwth .idsg .steve .ocpp .task .GetLogTask ;
37+ import de .rwth .idsg .steve .ocpp .task .InstallCertificateTask ;
3238import de .rwth .idsg .steve .ocpp .task .RemoteStartTransactionTask ;
3339import de .rwth .idsg .steve .ocpp .task .RemoteStopTransactionTask ;
3440import de .rwth .idsg .steve .ocpp .task .ReserveNowTask ;
3541import de .rwth .idsg .steve .ocpp .task .ResetTask ;
3642import de .rwth .idsg .steve .ocpp .task .SendLocalListTask ;
3743import de .rwth .idsg .steve .ocpp .task .SetChargingProfileTask ;
44+ import de .rwth .idsg .steve .ocpp .task .SignedUpdateFirmwareTask ;
3845import de .rwth .idsg .steve .ocpp .task .TriggerMessageTask ;
3946import de .rwth .idsg .steve .ocpp .task .UnlockConnectorTask ;
4047import de .rwth .idsg .steve .ocpp .task .UpdateFirmwareTask ;
@@ -52,6 +59,7 @@ public class ChargePointServiceSoapInvoker implements ChargePointServiceInvoker
5259
5360 public static final Exception EXCEPTION_V12 = new IllegalArgumentException ("This operation is not supported by this OCPP 1.2 station" );
5461 public static final Exception EXCEPTION_V15 = new IllegalArgumentException ("This operation is not supported by this OCPP 1.5 station" );
62+ public static final Exception EXCEPTION_NO_SOAP = new IllegalArgumentException ("This operation is not supported by SOAP stations" );
5563
5664 private final ClientProviderWithCache <ocpp .cp ._2010 ._08 .ChargePointService > soapV12Helper ;
5765 private final ClientProviderWithCache <ocpp .cp ._2012 ._06 .ChargePointService > soapV15Helper ;
@@ -244,6 +252,45 @@ public void triggerMessage(ChargePointSelect cp, TriggerMessageTask task) {
244252 }
245253 }
246254
255+ // -------------------------------------------------------------------------
256+ // "Improved security for OCPP 1.6-J" additions
257+ // -------------------------------------------------------------------------
258+
259+ @ Override
260+ public void extendedTriggerMessage (ChargePointSelect cp , ExtendedTriggerMessageTask task ) {
261+ task .failed (cp .getChargeBoxId (), EXCEPTION_NO_SOAP );
262+ }
263+
264+ @ Override
265+ public void getLog (ChargePointSelect cp , GetLogTask task ) {
266+ task .failed (cp .getChargeBoxId (), EXCEPTION_NO_SOAP );
267+ }
268+
269+ @ Override
270+ public void signedUpdateFirmware (ChargePointSelect cp , SignedUpdateFirmwareTask task ) {
271+ task .failed (cp .getChargeBoxId (), EXCEPTION_NO_SOAP );
272+ }
273+
274+ @ Override
275+ public void installCertificate (ChargePointSelect cp , InstallCertificateTask task ) {
276+ task .failed (cp .getChargeBoxId (), EXCEPTION_NO_SOAP );
277+ }
278+
279+ @ Override
280+ public void deleteCertificate (ChargePointSelect cp , DeleteCertificateTask task ) {
281+ task .failed (cp .getChargeBoxId (), EXCEPTION_NO_SOAP );
282+ }
283+
284+ @ Override
285+ public void certificateSigned (ChargePointSelect cp , CertificateSignedTask task ) {
286+ task .failed (cp .getChargeBoxId (), EXCEPTION_NO_SOAP );
287+ }
288+
289+ @ Override
290+ public void getInstalledCertificateIds (ChargePointSelect cp , GetInstalledCertificateIdsTask task ) {
291+ task .failed (cp .getChargeBoxId (), EXCEPTION_NO_SOAP );
292+ }
293+
247294 // -------------------------------------------------------------------------
248295 // Helpers
249296 // -------------------------------------------------------------------------
0 commit comments