SecretResponse.getValue() deprecated
This commit is contained in:
parent
0f5540913a
commit
fca6e496d8
@ -1,6 +1,7 @@
|
|||||||
## 0.5.0 [work in progress]
|
## 0.5.0 [work in progress]
|
||||||
* [feature] Convenience methods for DB credentials (#7)
|
* [feature] Convenience methods for DB credentials (#7)
|
||||||
* [fix] Minor bugfix in TokenBuilder
|
* [fix] Minor bugfix in TokenBuilder
|
||||||
|
* [deprecation] `SecretResponse.getValue()` deprecated
|
||||||
* [test] Tested against Vault 0.7.0
|
* [test] Tested against Vault 0.7.0
|
||||||
|
|
||||||
## 0.4.1 [2016-12-24]
|
## 0.4.1 [2016-12-24]
|
||||||
|
@ -64,7 +64,9 @@ public class SecretResponse extends VaultDataResponse {
|
|||||||
* Method for backwards compatibility in case of simple secrets.
|
* Method for backwards compatibility in case of simple secrets.
|
||||||
*
|
*
|
||||||
* @return the value
|
* @return the value
|
||||||
|
* @deprecated Deprecated artifact, will be removed at latest at v1.0.0
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
if (data.get("value") == null)
|
if (data.get("value") == null)
|
||||||
return null;
|
return null;
|
||||||
@ -79,7 +81,9 @@ public class SecretResponse extends VaultDataResponse {
|
|||||||
* @return Parsed object
|
* @return Parsed object
|
||||||
* @throws InvalidResponseException on parsing error
|
* @throws InvalidResponseException on parsing error
|
||||||
* @since 0.3
|
* @since 0.3
|
||||||
|
* @deprecated Deprecated artifact, will be removed at latest at v1.0.0
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public <T> T getValue(Class<T> type) throws InvalidResponseException {
|
public <T> T getValue(Class<T> type) throws InvalidResponseException {
|
||||||
return get("value", type);
|
return get("value", type);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user