That would be used by the Realm implementation to ensure the user is allowed
to log in based on their account's state.
For example:
User user = //get user based on AuthenticationToken
if ( user.isLocked() ) {
throw new LockedAccountException("Account is locked. If you think this
is in error, please see an administrator");
}
//otherwise, return the AuthenticationInfo as required
I don't know if the Spring/Hibernate sample app is making use of this method
or not - if it is not, it should be ;)
Cheers,
Les
On Fri, Feb 27, 2009 at 8:50 AM, Shay Matasaro <[email protected]> wrote:
> Hi All,
>
> in the spring hibernate example , class User exposes numerous methods
> related to the login process including isLockd() and setLockTimestamp(),
> etc...
>
> i have reviewed the sample files and the API, but i could not find out how
> these methods are called, nor could i find any interface that has such
> methods , i did however find a LockedAccountException class, but i don't
> know , how it ties into the framework.
>
> could someone please shed some light on the subject?
>
> Thanks,
> Shay
>