private boolean isAllowedDelegationTokenOp() throws IOException {
            if (UserGroupInformation.isSecurityEnabled()) {
                return EnumSet.of(
                                UserGroupInformation.AuthenticationMethod.KERBEROS,
                                UserGroupInformation.AuthenticationMethod.KERBEROS_SSL,
                                UserGroupInformation.AuthenticationMethod.CERTIFICATE)
                        .contains(UserGroupInformation.getCurrentUser().getRealAuthenticationMethod());
            } else {
                return true;
            }
        }
This module is responsible for talking to the
JobClient (user facing).
history-server/src/main/java/net/qihoo/hbox/jobhistory/HistoryClientService.java