Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java @ 8840:98a3cf810916
Fix client build.
Shame on me for having not clean build before commit 2c8259176c46.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 29 Jun 2017 18:25:20 +0200 |
parents | 5aff82e77ec3 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8839:2c8259176c46 | 8840:98a3cf810916 |
---|---|
70 | 70 |
71 Assertion assertion = null; | 71 Assertion assertion = null; |
72 try { | 72 try { |
73 String keyfile = | 73 String keyfile = |
74 (String)sc.getInitParameter("saml-trusted-public-key"); | 74 (String)sc.getInitParameter("saml-trusted-public-key"); |
75 int timeEps = Integer.parseInt( | |
76 sc.getInitParameter("saml-time-tolerance")); | |
75 TicketValidator validator = | 77 TicketValidator validator = |
76 new TicketValidator(sc.getRealPath(keyfile)); | 78 new TicketValidator(sc.getRealPath(keyfile), timeEps); |
77 | 79 |
78 InputStream in = new StringBufferInputStream(samlTicketXML); | 80 InputStream in = new StringBufferInputStream(samlTicketXML); |
79 assertion = validator.checkTicket(new Base64InputStream(in)); | 81 assertion = validator.checkTicket(new Base64InputStream(in)); |
80 } | 82 } |
81 catch (Exception e) { | 83 catch (Exception e) { |