question: public static boolean match ( String expectedName , Principal principal ) { String hostName = getServerName ( principal ) ; return ( expectedName . equalsIgnoreCase ( hostName ) ) ; }
target:  Perform the check for Kerberos.