move builders into model classes and deprecate constructors

Enforces use of builder pattern in future releases. Builder API is
unchanged despite the class itself.
This commit is contained in:
2020-04-15 17:13:50 +02:00
parent e0cbe34881
commit fa7036921a
11 changed files with 1150 additions and 352 deletions

View File

@ -18,6 +18,8 @@
### Deprecations
* `AppRole#getPolicies()` and `#setPolicies()` are deprecated in favor of `#getTokenPolicies()` and `#setTokenPolicies()`
* `AppRole#getPeriod()` is deprecated in favor of `#getTokenPeriod()`
* `AppRoleBuilder` and `TokenBuilder` in favor of `AppRole.Builder` and `Token.Builder`
* All-arg constructors of `AppRole` and `Token` in favor of `.builder()....build()` introduced in 0.8
### Removals
* Deprecated methods `AppRole#getBoundCidrList()`, `#setBoundCidrList()` and `getBoundCidrListString()` have been removed.