[cas-dev] method resolvePrincipal of Interface CredentialsToPrincipleResolver not throwing an Exception?
Scott Battaglia
scott.battaglia at gmail.com
Mon Jan 28 21:48:24 EST 2008
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
On Jan 28, 2008 6:16 PM, ssozonoff <serge at sozonoff.com> wrote:
>
> Hi All,
>
> I was just curious why the method resolvePrincipal
> (CredentialsToPrincipleResolver interface) does not throw an exception.
>
> Surely the task of looking up an principle other than the username could
> involve a network IO operation (for example). In this case it is very
> possible for it to fail for a number of reasons.
>
> How are people currently handling this?
>
> Thanks,
> Serge
>
>
> --
> View this message in context:
> http://www.nabble.com/method-resolvePrincipal-of-Interface-CredentialsToPrincipleResolver-not-throwing-an-Exception--tp15148341p15148341.html
> Sent from the CAS Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> cas-dev mailing list
> cas-dev at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20080128/70a0b419/attachment-0001.html
More information about the cas-dev
mailing list