[cas-dev] FileAuthenticationHandler and filename styntax
Julien Marchal
Julien.Marchal at univ-nancy2.fr
Fri Mar 9 08:19:57 EST 2007
We have update the "generic adaptator" give with cas distribution
(org.jasig.cas.adaptors.generic.FileAuthenticationHandler) to use spring
ressource for the filename.
It's more easy to define fileName with this (like
file:/home/cas/userFile, or other spring ressource)
Modifications are in
org.jasig.cas.adaptors.generic.FileAuthenticationHandler
1) Replace :
private String fileName;
By
private Resource fileName;
2) Replace :
bufferedReader = new BufferedReader(new InputStreamReader(this
.getClass().getResourceAsStream(this.fileName)));
By
bufferedReader = new BufferedReader(new
InputStreamReader(fileName.getInputStream()));
Do you think this solution is better ?
PS : I don't know if you preffered mail or
http://www.ja-sig.org/issues/browse/CAS to declare feature or bug ?
--
> Université Nancy 2 <http://www.univ-nancy2.fr/>
Pôle Lorrain de Gestion
13 rue du Maréchal Ney
CO 30075
54036 NANCY Cedex
> Téléphone 03.54.50.36.54
> Fax 03.54.50.36.51
Julien Marchal
Equipe réseau - CRI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/c4a4bf26/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1829 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/c4a4bf26/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1044 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/c4a4bf26/attachment-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 932 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/c4a4bf26/attachment-0002.png
More information about the cas-dev
mailing list