/// <exception cref="System.Exception"/>
        protected override void ServiceInit(Configuration conf)
        {
            if (conf.GetBoolean(YarnConfiguration.TimelineServiceRecoveryEnabled, YarnConfiguration
                                .DefaultTimelineServiceRecoveryEnabled))
            {
                stateStore = CreateStateStore(conf);
                stateStore.Init(conf);
            }
            long secretKeyInterval = conf.GetLong(YarnConfiguration.TimelineDelegationKeyUpdateInterval
                                                  , YarnConfiguration.DefaultTimelineDelegationKeyUpdateInterval);
            long tokenMaxLifetime = conf.GetLong(YarnConfiguration.TimelineDelegationTokenMaxLifetime
                                                 , YarnConfiguration.DefaultTimelineDelegationTokenMaxLifetime);
            long tokenRenewInterval = conf.GetLong(YarnConfiguration.TimelineDelegationTokenRenewInterval
                                                   , YarnConfiguration.DefaultTimelineDelegationTokenRenewInterval);

            secretManager = new TimelineDelegationTokenSecretManagerService.TimelineDelegationTokenSecretManager
                                (secretKeyInterval, tokenMaxLifetime, tokenRenewInterval, 3600000, stateStore);
            base.Init(conf);
        }
 public static void SetTimelineDelegationTokenSecretManager(TimelineDelegationTokenSecretManagerService.TimelineDelegationTokenSecretManager
                                                            secretManager)
 {
     TimelineAuthenticationFilter.secretManager = secretManager;
 }