diff options
author | Andreas Fitzek <afitzek@iaik.tugraz.at> | 2013-04-23 11:46:25 +0200 |
---|---|---|
committer | Andreas Fitzek <afitzek@iaik.tugraz.at> | 2013-04-23 11:46:25 +0200 |
commit | b51e4b4d111d3a8c097019bb4f3c4d0a01f98a6a (patch) | |
tree | 7565199fbf5508b81154e00ff24963304364d5f9 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/requestHandler/AuthnRequestHandler.java | |
parent | 0bc857b32c4c265ba5cb3a3b8c19250fd9bd90bc (diff) | |
download | moa-id-spss-b51e4b4d111d3a8c097019bb4f3c4d0a01f98a6a.tar.gz moa-id-spss-b51e4b4d111d3a8c097019bb4f3c4d0a01f98a6a.tar.bz2 moa-id-spss-b51e4b4d111d3a8c097019bb4f3c4d0a01f98a6a.zip |
Some MoaID changes
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/requestHandler/AuthnRequestHandler.java')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/requestHandler/AuthnRequestHandler.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/requestHandler/AuthnRequestHandler.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/requestHandler/AuthnRequestHandler.java new file mode 100644 index 000000000..cdc0a9914 --- /dev/null +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/requestHandler/AuthnRequestHandler.java @@ -0,0 +1,25 @@ +package at.gv.egovernment.moa.id.protocols.pvp2x.requestHandler; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.opensaml.saml2.core.AuthnRequest; +import org.opensaml.saml2.core.RequestAbstractType; + +public class AuthnRequestHandler implements IRequestHandler { + + public boolean handleObject(RequestAbstractType obj) { + return (obj instanceof AuthnRequest); + } + + public void process(RequestAbstractType obj, HttpServletRequest req, + HttpServletResponse resp) { + if(!handleObject(obj)) { + // TODO: throw exception + return; + } + + System.out.println("AuthnRequest"); + } + +} |