/** * Sets the name of the property in any properties file discovered that represents the ApiKey ID value, defaults to * {@code apiKey.id}. * * @param fileIdPropertyName the name of the property in any properties file discovered that represents the ApiKey * ID value, defaults to {@code apiKey.id}. */ public void setFileIdPropertyName(String fileIdPropertyName) { builder.setIdPropertyName(fileIdPropertyName); }
/** * Sets the apiKey ID that will be used when authenticating the client requests to the Stormpath REST API. If * unspecified, property value lookup heuristics will be used to find the apiKeyId value. * * @param id the apiKey ID that will be used when authenticating the client requests to the Stormpath REST API. */ public void setId(String id) { builder.setId(id); }
@Override public void save(ApiKeyOptions options) { this.primary.save(options); } }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setProperties(java.util.Properties) setProperties(properties)}{@code .build())}. * * @param properties the properties instance to use to load the API Key ID and Secret. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setProperties(java.util.Properties) * @since 0.2 */ public void setApiKeyProperties(Properties properties) { this.clientBuilder.setApiKey(ApiKeys.builder().setProperties(properties).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#setIdPropertyName(String) setIdPropertyName(apiKeyIdPropertyName)}{@code .build())}. * * @param apiKeyIdPropertyName the name used to query for the API Key ID from a Properties instance. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setIdPropertyName(String) * @since 0.2 */ public void setApiKeyIdPropertyName(String apiKeyIdPropertyName) { this.clientBuilder.setApiKey(ApiKeys.builder().setIdPropertyName(apiKeyIdPropertyName).build()); }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setSecretPropertyName(String) setSecretPropertyName(apiKeySecretPropertyName)}{@code .build())}. * * @param apiKeySecretPropertyName the name used to query for the API Key Secret from a Properties instance. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setSecretPropertyName(String) * @since 0.2 */ public void setApiKeySecretPropertyName(String apiKeySecretPropertyName) { this.clientBuilder.setApiKey(ApiKeys.builder().setSecretPropertyName(apiKeySecretPropertyName).build()); }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setReader(java.io.Reader) setReader(apiKeyReader)}{@code .build())}. * * @param apiKeyReader the reader to use to construct a configuration Properties instance. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setReader(java.io.Reader) * @since 0.2 */ public void setApiKeyReader(Reader apiKeyReader) { this.clientBuilder.setApiKey(ApiKeys.builder().setReader(apiKeyReader).build()); }
@Override public String getSecret() { return apiKey.getSecret(); }
/** * Sets the ApiKey secret that will be used when authenticating client requests to the Stormpath REST API. If * unspecified, property value lookup heuristics will be used to find the apiKeyId value. * * <p>For security reasons, it is <em>strongly</em> recommended that you do not configure raw secret values in * Spring configuration that can be seen by other developers and checked in to version control. Spring property * placeholders and/or environment variables are recommended instead.</p> * * @param secret the ApiKey secret that will be used when authenticating client requests to the Stormpath REST API. */ public void setSecret(String secret) { builder.setSecret(secret); }
@Override public Account getAccount() { return apiKey.getAccount(); }
/** * Sets the name of the property in any properties file discovered that represents the ApiKey secret value, defaults * to {@code apiKey.secret}. * * @param fileSecretPropertyName the name of the property in any properties file discovered that represents the * ApiKey secret value, defaults to {@code apiKey.secret}. */ public void setFileSecretPropertyName(String fileSecretPropertyName) { builder.setSecretPropertyName(fileSecretPropertyName); }
@Override public String getHref() { return this.primary.getHref(); }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setProperties(java.util.Properties) setProperties(properties)}{@code .build())}. * * @param properties the properties instance to use to load the API Key ID and Secret. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setProperties(java.util.Properties) * @since 0.2 */ public void setApiKeyProperties(Properties properties) { this.clientBuilder.setApiKey(ApiKeys.builder().setProperties(properties).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#setIdPropertyName(String) setIdPropertyName(apiKeyIdPropertyName)}{@code .build())}. * * @param apiKeyIdPropertyName the name used to query for the API Key ID from a Properties instance. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setIdPropertyName(String) * @since 0.2 */ public void setApiKeyIdPropertyName(String apiKeyIdPropertyName) { this.clientBuilder.setApiKey(ApiKeys.builder().setIdPropertyName(apiKeyIdPropertyName).build()); }
/** * Sets the apiKey ID that will be used when authenticating the client requests to the Stormpath REST API. If * unspecified, property value lookup heuristics will be used to find the apiKeyId value. * * @param id the apiKey ID that will be used when authenticating the client requests to the Stormpath REST API. */ public void setId(String id) { builder.setId(id); }
/** * Sets the name of the property in any properties file discovered that represents the ApiKey ID value, defaults to * {@code apiKey.id}. * * @param fileIdPropertyName the name of the property in any properties file discovered that represents the ApiKey * ID value, defaults to {@code apiKey.id}. */ public void setFileIdPropertyName(String fileIdPropertyName) { builder.setIdPropertyName(fileIdPropertyName); }
/** * Sets the name of the property in any properties file discovered that represents the ApiKey secret value, defaults * to {@code apiKey.secret}. * * @param fileSecretPropertyName the name of the property in any properties file discovered that represents the * ApiKey secret value, defaults to {@code apiKey.secret}. */ public void setFileSecretPropertyName(String fileSecretPropertyName) { builder.setSecretPropertyName(fileSecretPropertyName); }
/** * Calls {@code clientBuilder.setApiKey(ApiKeys.builder().}{@link com.stormpath.sdk.api.ApiKeyBuilder#setProperties(java.util.Properties) setProperties(properties)}{@code .build())}. * * @param properties the properties instance to use to load the API Key ID and Secret. * @see ClientBuilder#setApiKey(com.stormpath.sdk.api.ApiKey) * @see com.stormpath.sdk.api.ApiKeyBuilder#setProperties(java.util.Properties) * @since 0.2 */ public void setApiKeyProperties(Properties properties) { this.clientBuilder.setApiKey(ApiKeys.builder().setProperties(properties).build()); }