Subject is "transient", i.e a logged-in user.
You don't usually save a subject into the database.

The key to understanding Shiro is that the main customization point
is your own realm.

On Sep 23, 2015, at 11:05 PM, gembin wrote:

> Thanks a lot for the answer.
> 
> What i means is after i saved the subject, e.g. in a database, how would the
> securityManager knows to
> get it back (restore a saved subject)?  it only knows how to save and
> delete,  because there is no such a SPI  defined in the SubjectDAO to
> retrieve the subject object from the database or disk etc.. 
> 
> I understand what this DAO is trying to do, but i don't understand how a
> custom implementation would work in case of saved in a disk or db etc.
> 
> 
> 
> --
> View this message in context: 
> http://shiro-user.582556.n2.nabble.com/What-s-the-purpose-of-SubjectDAO-tp7580784p7580787.html
> Sent from the Shiro User mailing list archive at Nabble.com.
> 

Reply via email to