/** * Returns whether the given endpoint credentials are stored on this vault * * @param endpointId String * @return boolean */ public boolean hasCredentials(String endpointId) { return getProperties().containsKey(endpointId); }
/** * Returns whether the given endpoint credentials are stored on this vault * * @param endpointId String * @return boolean */ public boolean hasCredentials(String endpointId) { return getProperties().containsKey(endpointId); }
/** * Returns whether the given endpoint credentials are stored on this vault * * @param endpointId * @return */ public boolean hasCredentials(String endpointId) { return getProperties().containsKey(endpointId); }
/** * Removes credentials from the vault * * @param endpointId String */ public void removeCredentials(String endpointId) { // remove from the actual vault this.vault.remove(endpointId); // remove from our map getProperties().remove(endpointId); }
/** * Removes credentials from the vault * * @param endpointId String */ public void removeCredentials(String endpointId) { // remove from the actual vault this.vault.remove(endpointId); // remove from our map getProperties().remove(endpointId); }
/** * Creates new credentials and binds them into this vault. * If the credentials already exist, the old ones will be returned * * @param endpointId String * @return ScriptCredentials */ public ScriptCredentials newCredentials(String endpointId) { ScriptCredentials scriptCredentials = (ScriptCredentials) getProperties().get(endpointId); if (scriptCredentials == null) { Credentials creds = this.vault.newCredentials(endpointId); // update our properties map scriptCredentials = new ScriptCredentials(this.vault, creds); getProperties().put(endpointId, scriptCredentials); } return scriptCredentials; }
/** * Creates new credentials and binds them into this vault. * If the credentials already exist, the old ones will be returned * * @param endpointId String * @return ScriptCredentials */ public ScriptCredentials newCredentials(String endpointId) { ScriptCredentials scriptCredentials = (ScriptCredentials) getProperties().get(endpointId); if (scriptCredentials == null) { Credentials creds = this.vault.newCredentials(endpointId); // update our properties map scriptCredentials = new ScriptCredentials(this.vault, creds); getProperties().put(endpointId, scriptCredentials); } return scriptCredentials; }
/** * Removes credentials from the vault * * @param endpointId */ public void removeCredentials(String endpointId) { // remove from the actual vault this.vault.remove(endpointId); this.vault.save(); // remove from our map getProperties().remove(endpointId); }
/** * Creates new credentials and binds them into this vault. * If the credentials already exist, the old ones will be returned * * @param endpointId * @return */ public ScriptCredentials newCredentials(String endpointId) { ScriptCredentials scriptCredentials = (ScriptCredentials) getProperties().get(endpointId); if (scriptCredentials == null) { Credentials creds = this.vault.newCredentials(endpointId); this.vault.save(); // update our properties map scriptCredentials = new ScriptCredentials(this.vault, creds); getProperties().put(endpointId, scriptCredentials); } return scriptCredentials; }
Iterator it = getProperties().keySet().iterator(); while (it.hasNext()) ScriptCredentials scriptCredentials = (ScriptCredentials) getProperties().get(endpointId);
Iterator it = getProperties().keySet().iterator(); while (it.hasNext()) ScriptCredentials scriptCredentials = (ScriptCredentials) getProperties().get(endpointId);
Iterator it = getProperties().keySet().iterator(); while (it.hasNext()) ScriptCredentials scriptCredentials = (ScriptCredentials) getProperties().get(endpointId);