You may also be able to use the "Matcher" api provided as part of this pull:
https://github.com/Jasig/java-cas-client/pull/64