[cas-dev] method resolvePrincipal of Interface CredentialsToPrincipleResolver not throwing an Exception?
ssozonoff
serge at sozonoff.com
Tue Jan 29 03:28:13 EST 2008
Hi Scott,
Sure and I was not implying that throwing an IOException was acceptable what
I meant was that other than returning a null for the principle I see no way
of indicating a failure.
So is returning a null value for the Principle is acceptable?
Thanks,
Serge
scott_battaglia wrote:
>
> An exception like an IOException is specific to the implementation of the
> resolver (not all of them would need to do this). In addition, any
> handling
> of that exception would only be able to occur within that resolver (as
> none
> of the items that call it assume that resolvers require IO operations).
> Anything that couldn't be handled by the resolver is something that most
> likely could not be handled at all and thus would be a RuntimeException
> (which are generally not declared in the signature as you do not want to
> force people to catch something they probably won't be able to handle.
>
> -Scott
>
>
--
View this message in context: http://www.nabble.com/method-resolvePrincipal-of-Interface-CredentialsToPrincipleResolver-not-throwing-an-Exception--tp15148341p15154651.html
Sent from the CAS Dev mailing list archive at Nabble.com.
More information about the cas-dev
mailing list