protected JHSDelegationTokenSecretManager createJHSSecretManager(
            Configuration conf, HistoryServerStateStoreService store) {
        long secretKeyInterval = conf.getLong(
                HboxConfiguration.DELEGATION_KEY_UPDATE_INTERVAL_KEY,
                HboxConfiguration.DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT);
        long tokenMaxLifetime = conf.getLong(
                HboxConfiguration.DELEGATION_TOKEN_MAX_LIFETIME_KEY,
                HboxConfiguration.DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT);
        long tokenRenewInterval = conf.getLong(
                HboxConfiguration.DELEGATION_TOKEN_RENEW_INTERVAL_KEY,
                HboxConfiguration.DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT);

        return new JHSDelegationTokenSecretManager(
                secretKeyInterval, tokenMaxLifetime, tokenRenewInterval, 3600000, store);
    }
Priority of the JobHistoryServer shutdown hook.
history-server/src/main/java/net/qihoo/hbox/jobhistory/JobHistoryServer.java