public java.lang.Object getFieldValue(_Fields field) { switch (field) { case CREDS: return get_creds(); case TOPO_OWNER: return get_topoOwner(); } throw new java.lang.IllegalStateException(); }
@Override public void run(String[] args, Map<String, Object> conf, String command) throws Exception { // We are pretending to be nimbus here. IStormClusterState state = ClusterUtils.mkStormClusterState(conf, new ClusterStateContext(DaemonType.NIMBUS, conf)); for (String topologyId: args) { System.out.println(topologyId + ":"); Credentials creds = state.credentials(topologyId, null); if (creds != null) { for (String key : creds.get_creds().keySet()) { System.out.println("\t" + key); } } } }
public void checkCredentialsChanged() { Credentials newCreds = workerState.stormClusterState.credentials(topologyId, null); if (!ObjectUtils.equals(newCreds, credentialsAtom.get())) { // This does not have to be atomic, worst case we update when one is not needed ClientAuthUtils.updateSubject(subject, autoCreds, (null == newCreds) ? null : newCreds.get_creds()); for (IRunningExecutor executor : executorsAtom.get()) { executor.credentialsChanged(newCreds); } credentialsAtom.set(newCreds); } }
Credentials origCreds = state.credentials(id, null); if (origCreds != null) { Map<String, String> origCredsMap = origCreds.get_creds(); Map<String, String> newCredsMap = new HashMap<>(origCredsMap); for (ICredentialsRenewer renewer : renewers) {
Map<String, String> initCreds = new HashMap<>(); if (initialCredentials != null) { initCreds.putAll(initialCredentials.get_creds());
Map<String, String> creds = null; if (options.is_set_creds()) { creds = options.get_creds().get_creds();
Credentials tmpCreds = opts.get_creds(); if (tmpCreds != null) { passedCreds = tmpCreds.get_creds();
public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return get_creds(); } throw new IllegalStateException(); }
Credentials tmpCreds = opts.get_creds(); if (tmpCreds != null) { passedCreds = tmpCreds.get_creds();