How to implement the Proxy Authentication?

Environment: CAS server 3.07 + Java Client 2.1.1

 I have taken a detail look at the proxy autentication(as of CAS 2.0), but i don't understand it clear, especially how to implement it for an actual case.

Please give me an actual case and the source code how to implement it.

Thanks!!