/** * Gets the property. * * @param propertyName the property name * * @return the property */ public String getProperty(String propertyName) { ParameterCheck.mandatory("propertyName", propertyName); return (String)getProperties().get(propertyName); }
/** * Gets the property. * * @param propertyName the property name * * @return the property */ public String getProperty(String propertyName) { ParameterCheck.mandatory("propertyName", propertyName); return (String)getProperties().get(propertyName); }
String propertyValue = (String) getProperties().get(propertyName); modelObject.setProperty(propertyName, propertyValue);
String propertyValue = (String) getProperties().get(propertyName); modelObject.setProperty(propertyName, propertyValue);
/** * 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; }
/** * 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; }