Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/was/Authenticator.java @ 5943:a96350a1c160
Pass trusted key filename to Response in WAS Authenticator.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 08 May 2013 17:56:14 +0200 |
parents | 1b939742629e |
children | ea9eef426962 |
comparison
equal
deleted
inserted
replaced
5942:92da396f80d7 | 5943:a96350a1c160 |
---|---|
60 if (entity == null) { | 60 if (entity == null) { |
61 //FIXME throw AuthenticationException | 61 //FIXME throw AuthenticationException |
62 return null; | 62 return null; |
63 } | 63 } |
64 else { | 64 else { |
65 return new Response(entity, username, password, features); | 65 String trustedKey = |
66 (String)context.getInitParameter("saml-trusted-public-key"); | |
67 return new Response(entity, username, password, features, | |
68 context.getRealPath(trustedKey)); | |
66 } | 69 } |
67 } | 70 } |
68 catch(GeneralSecurityException e) { | 71 catch(GeneralSecurityException e) { |
69 throw new AuthenticationException(e); | 72 throw new AuthenticationException(e); |
70 } | 73 } |