I'm using spring 3.0.Look at the code below
<authentication-manager alias="authenticationManager">
<authentication-provider>
<!--<jdbc-user-service data-source-ref="dataSource"/>-->
<password-encoder hash="md5"/>
<user-service>
<user name="presales" password="5d7bef99362b26cdc709f6ab436eedb2" authorities="ROLE_USER,ROLE_ADMIN" />
</user-service>
</authentication-provider>
</authentication-manager>
I have to load the authorities(say ROLE_USER) from a java file. Is there anyway to implement this?Can any one help me?


Reply With Quote

