diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-02-18 14:38:16 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-02-18 14:38:16 +0100 |
commit | 695cc43865708aa9b97755fcd45fab4498d0eaab (patch) | |
tree | b363279e5d8cd7bb7ed78a3bcafb76bbbd9aa7a1 /id/server/idserverlib | |
parent | 9bc5c59cdfc5660400636cbe7a15ab40a00efdac (diff) | |
download | moa-id-spss-695cc43865708aa9b97755fcd45fab4498d0eaab.tar.gz moa-id-spss-695cc43865708aa9b97755fcd45fab4498d0eaab.tar.bz2 moa-id-spss-695cc43865708aa9b97755fcd45fab4498d0eaab.zip |
fix problem with protocol-action implementation validation
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java index 5341951d2..bb89f2e03 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java @@ -184,12 +184,12 @@ public abstract class AbstractAuthProtocolModulController extends AbstractContro // request needs no authentication --> start request processing Class<?> clazz = Class.forName(pendingReq.requestedAction()); if (clazz == null || - !clazz.isInstance(IAction.class)) { + !IAction.class.isAssignableFrom(clazz)) { Logger.fatal("Requested protocol-action processing Class is NULL or does not implement the IAction interface."); throw new Exception("Requested protocol-action processing Class is NULL or does not implement the IAction interface."); } - + IAction protocolAction = (IAction) applicationContext.getBean(clazz); return protocolAction.processRequest(pendingReq, httpReq, httpResp, authData); |