@Override protected ApiKey createInstance() throws Exception { if (file != null && file.exists()) { InputStream is = file.getInputStream(); builder.setInputStream(is); } return builder.build(); } }
@Override protected ApiKey createInstance() throws Exception { if (file != null && file.exists()) { InputStream is = file.getInputStream(); builder.setInputStream(is); } return builder.build(); } }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setInputStream(java.io.InputStream) setInputStream(apiKeyInputStream)}{@code .build())}. * * @param apiKeyInputStream the InputStream to use to construct a configuration Properties instance. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setInputStream(java.io.InputStream) * @since 0.2 */ public void setApiKeyInputStream(InputStream apiKeyInputStream) { this.clientBuilder.setApiKey(ApiKeys.builder().setInputStream(apiKeyInputStream).build()); }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setInputStream(java.io.InputStream) setInputStream(apiKeyInputStream)}{@code .build())}. * * @param apiKeyInputStream the InputStream to use to construct a configuration Properties instance. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setInputStream(java.io.InputStream) * @since 0.2 */ public void setApiKeyInputStream(InputStream apiKeyInputStream) { this.clientBuilder.setApiKey(ApiKeys.builder().setInputStream(apiKeyInputStream).build()); }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setInputStream(java.io.InputStream) setInputStream(apiKeyInputStream)}{@code .build())}. * * @param apiKeyInputStream the InputStream to use to construct a configuration Properties instance. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setInputStream(java.io.InputStream) * @since 0.2 */ public void setApiKeyInputStream(InputStream apiKeyInputStream) { this.clientBuilder.setApiKey(ApiKeys.builder().setInputStream(apiKeyInputStream).build()); }
builder.setInputStream(apiKeyFile.getInputStream()); } catch (IOException e) { String msg = "Unable to acquire specified resource [" + apiKeyFile + "]: " + e.getMessage();
builder.setInputStream(apiKeyFile.getInputStream()); } catch (IOException e) { String msg = "Unable to acquire specified resource [" + apiKeyFile + "]: " + e.getMessage();