OK, JSecurity is exactly what I have been looking for.
However, I have have kind of a unique requirement for
authentication. I am trying to build my own
AuthenticationToken and associated classes however I
don't even know where to begin. I keep on digging
through the mail list and website but I yet to find a
page that explains what interfaces I should be
implementing and what classes I should be building.
Am I missing something? It seems I have to build a:
AuthenticationToken
Account
Principal
Can someone illuminate the path a bit?
Thank you.
Hi Danny, Yep, you'll need
Hi Danny,
Yep, you'll need to implement the AuthenticationToken interface. If it is a web app, and you want to support 'remember me' services, also implement the RememberMeAuthenticationToken interface.
Each Realm that processes your token will need to 'support' it. If your realm implementation is a subclass of AuthenticatingRealm or AuthorizingRealm (as most are in JSecurity), make sure the realm supports your authentication token, which is usually just as easy as setting the authenticationTokenClass for that realm instance.
Your Account implementation will need to return an instance of PrincipalCollection, but that is a pretty easy task - you can use the SimpleAccount directly, or look at its source code to give you ideas on how to write your own.
I hope that gets you started. Please feel free to ask more questions!
Cheers,
Les
OK cool, that is a good
OK cool, that is a good start. I will try to get some work done on this during the weekend.
Thank you.