The AbstractUsernamePasswordAuthenticationHandler's support method is designed to accept any class that extends UsernamePasswordCredentials. There are options to restrict it to specific classes (i.e. MyUsernamePasswordCredentials) and to not accept subclasses.
If you need more explicit checking (i.e. pattern matching of username), I would recommend just implementing the AuthenticationHandler interface as you won't be gaining much of the benefit of the AbstractUsernamePasswordAuthenticationHandler anyway other than the fact that you won't need to do the cast to UsernamePasswordCredentials. Cheers, Scott On Wed, Apr 29, 2009 at 8:00 AM, Saravanan Chinnasamy <[email protected] > wrote: > Hi, > > > > We have added a custom handler << RPASUserNamePasswordAuthenticationHandler > > for Windows Live authentication. This handler extends the CAS abstract > handler << AbstractUsernamePasswordAuthenticationHandler>>. We can register > n number of handlers inside single instance of CAS for different > authentication mechanism. In order to authenticate against the appropriate > handler, CAS service invokes the supports function of each handler providing > the user credentials. Can we override the support function provided in > (AbstractUsernamePasswordAuthenticationHandler class) to recognize a > particular credential pattern deciding the suitability for this > authentication handler. This way, we can define and invoke different > handlers under same instance of CAS Server. > > > > > > Thanks > > Saravanan > > > _____________________________________________________________________ > > This e-mail message may contain proprietary, confidential or legally > privileged information for the sole use of the person or entity to whom this > message was originally addressed. Any review, e-transmission dissemination > or other use of or taking of any action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. If you > have received this e-mail in error kindly delete this e-mail from your > records. If it appears that this mail has been forwarded to you without > proper authority, please notify us immediately at [email protected] and > delete this mail. > _____________________________________________________________________ > > -- > You are currently subscribed to [email protected] as: > [email protected] > > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
