Hi,

I am trying to learn Shiro. I want to port a legacy application to Shiro.
Legacy application has a User Entity. In order to port application to Shiro
what I have in my mind is extending WebDelegatingSubject as this:


public class User extends WebDelegatingSubject {
>     private Integer id;
>
>     @NotNull
>     @Length(min = 4, max = 16)
>     @IsLegalUsername
>     @IsUsernameExists
>     private String username;
>
>     private String email;
>
>     private String password;
>
>     private Date birthday;
>
>     // getter setter .....

}



What are the steps the provide a custom Subject? Or I should do something
else?

Thanks

Reply via email to