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