Custom AuthenticationHandler messages
Scott Battaglia
scott.battaglia at gmail.com
Tue Sep 16 15:14:09 EDT 2008
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 <awburton at yahoo.com> 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
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080916/c2f3ebf5/attachment.html
More information about the cas
mailing list