@Override public synchronized void startThreads() throws IOException { try { // updateCurrentKey needs to be called to initialize the master key // (there should be a null check added in the future in rollMasterKey) // updateCurrentKey(); Method m = AbstractDelegationTokenSecretManager.class.getDeclaredMethod("updateCurrentKey"); m.setAccessible(true); m.invoke(this); } catch (Exception e) { throw new IOException("Failed to initialize master key", e); } running = true; tokenRemoverThread = new Daemon(new ExpiredTokenRemover()); tokenRemoverThread.start(); }
@Override public synchronized void startThreads() throws IOException { try { // updateCurrentKey needs to be called to initialize the master key // (there should be a null check added in the future in rollMasterKey) // updateCurrentKey(); Method m = AbstractDelegationTokenSecretManager.class.getDeclaredMethod("updateCurrentKey"); m.setAccessible(true); m.invoke(this); } catch (Exception e) { throw new IOException("Failed to initialize master key", e); } running = true; tokenRemoverThread = new Daemon(new ExpiredTokenRemover()); tokenRemoverThread.start(); }
@Override public synchronized void startThreads() throws IOException { try { // updateCurrentKey needs to be called to initialize the master key // (there should be a null check added in the future in rollMasterKey) // updateCurrentKey(); Method m = AbstractDelegationTokenSecretManager.class.getDeclaredMethod("updateCurrentKey"); m.setAccessible(true); m.invoke(this); } catch (Exception e) { throw new IOException("Failed to initialize master key", e); } running = true; tokenRemoverThread = new Daemon(new ExpiredTokenRemover()); tokenRemoverThread.start(); }
@Override public synchronized void startThreads() throws IOException { try { // updateCurrentKey needs to be called to initialize the master key // (there should be a null check added in the future in rollMasterKey) // updateCurrentKey(); Method m = AbstractDelegationTokenSecretManager.class.getDeclaredMethod("updateCurrentKey"); m.setAccessible(true); m.invoke(this); } catch (Exception e) { throw new IOException("Failed to initialize master key", e); } running = true; tokenRemoverThread = new Daemon(new ExpiredTokenRemover()); tokenRemoverThread.start(); }