Skip to content

Commit a31b4e4

Browse files
author
Mathias Oben
committed
ServerEvents.authenticateSession should again throw AuthenticationException
1 parent d633f87 commit a31b4e4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ocpp-common/src/main/java/eu/chargetime/ocpp/ServerEvents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ of this software and associated documentation files (the "Software"), to deal
2929
import java.util.UUID;
3030

3131
public interface ServerEvents {
32-
void authenticateSession(SessionInformation information, String username, byte[] password);
32+
void authenticateSession(SessionInformation information, String username, byte[] password) throws AuthenticationException;
3333

3434
void newSession(UUID sessionIndex, SessionInformation information);
3535

ocpp-v1_6-test/src/main/java/eu/chargetime/ocpp/test/DummyHandlers.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ of this software and associated documentation files (the "Software"), to deal
2626
SOFTWARE.
2727
*/
2828

29+
import eu.chargetime.ocpp.AuthenticationException;
2930
import eu.chargetime.ocpp.ServerEvents;
3031
import eu.chargetime.ocpp.feature.profile.ServerCoreEventHandler;
3132
import eu.chargetime.ocpp.feature.profile.ServerFirmwareManagementEventHandler;
@@ -164,7 +165,7 @@ public ServerEvents generateServerEventsHandler() {
164165
return new ServerEvents() {
165166
@Override
166167
public void authenticateSession(
167-
SessionInformation information, String username, byte[] password) {}
168+
SessionInformation information, String username, byte[] password) throws AuthenticationException {}
168169

169170
@Override
170171
public void newSession(UUID sessionIndex, SessionInformation information) {

ocpp-v2_0-test/src/main/java/eu/chargetime/ocpp/test/FakeCentralSystem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ of this software and associated documentation files (the "Software"), to deal
2525
SOFTWARE.
2626
*/
2727

28+
import eu.chargetime.ocpp.AuthenticationException;
2829
import eu.chargetime.ocpp.IServerAPI;
2930
import eu.chargetime.ocpp.JSONConfiguration;
3031
import eu.chargetime.ocpp.JSONServer;
@@ -73,7 +74,7 @@ public void started() throws Exception {
7374
new ServerEvents() {
7475
@Override
7576
public void authenticateSession(
76-
SessionInformation information, String username, byte[] password) {}
77+
SessionInformation information, String username, byte[] password) throws AuthenticationException {}
7778

7879
@Override
7980
public void newSession(UUID sessionIndex, SessionInformation information) {

0 commit comments

Comments
 (0)