AuthenticationException is an abstract class. You'd have to implement a class that extends it. Look at the examples included in CAS. -Scott
-Scott Battaglia PGP Public Key Id: 0x383733AA LinkedIn: http://www.linkedin.com/in/scottbattaglia On Tue, Sep 16, 2008 at 1:56 PM, Aaron Burton <[EMAIL PROTECTED]> wrote: > I have my own authentication handler that has been working fine for a long > time. Now I want to add some custom messages like "your password is > expired". So I've added a throw to my handler, if the password is expired, > like this. > > throw new > AuthenticationException("error.authentication.credentials.expired"); > > I'm getting a "Cannot instantiate the type AuthenticationException" > message. The shell of my handler is like this: > > public class CustomAuthenticationHandler implements AuthenticationHandler { > public boolean authenticate(Credentials credentials) throws > AuthenticationException { > ... my validation code is in here... > } > } > > if someone could point me to an example that throws a custom error code, > that would great. > > Thank you > > > > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas > >
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
