712fab04e1
combine payload map creation into subroutines
...
We create payload maps with conditional argument sets in several
places. Combine the generation into subroutines, to keep the actual
endpoint calls short and clear.
2022-11-21 11:40:53 +01:00
39ac32a2f6
minor rework of internal path constants
2022-11-21 11:33:47 +01:00
64e55eddd8
model: add request ID to data response models
continuous-integration/drone/push Build is passing
2022-04-24 16:44:50 +02:00
feb6e147fe
model: add support for (dis)allowed policy glob patterns in TokenRole
continuous-integration/drone/push Build is passing
2022-04-24 16:40:33 +02:00
b0d2b038eb
model: add missing fields to AuthMethod
model
continuous-integration/drone/push Build is passing
2022-04-24 16:32:49 +02:00
4f3cb4b330
model: eliminate double-mapping of generic data in response classes
...
Explicitly declare mapping of the "data" field in response classes.
Therefore, the JSON setter setData() is no longer used. SecretResponse
is split into subclasses for secret with and without metadata.
2022-04-19 17:24:16 +02:00
021421a54c
model: implement Serializable with model classes
...
implement equals() and hashCode()
2022-04-19 17:24:09 +02:00
bd0c5b08fe
model: add wrap_info to data response model
continuous-integration/drone/push Build is passing
2022-03-06 18:11:31 +01:00
5f3a36e2c5
update copyright notice to 2022
2022-03-06 18:10:33 +01:00
f6180c4f90
model: add migration, recovery and storage type fields to seal status
continuous-integration/drone/push Build is passing
2022-02-05 13:01:57 +01:00
dc4b62496a
model: use correct "replication_performance_mode" JSON field
...
continuous-integration/drone/push Build is passing
The official docs incorrectly state "replication_perf_mode" which was
renamed to "replication_performance_mode" way back in Vault 0.9. We now
use the correct field name that is emitted by the API.
2021-12-27 18:54:49 +01:00
6a73bc39d3
connector: remove unused DEFAULT_TLS_VERSION field
...
continuous-integration/drone/push Build is passing
This constant was left over from the RequestHelper refactoring. It is
not used anywhere in our code and likely not used by any downstream
project, so we remove it now.
2021-10-26 20:05:37 +02:00
75561a0540
passthrough null as port number in builder ( #56 )
continuous-integration/drone/push Build is passing
2021-10-12 20:58:59 +02:00
1c31b7a5fe
auto format JavaDocs
continuous-integration/drone/push Build is passing
2021-10-02 15:04:00 +02:00
f918f85d20
Merge branch 'main' into develop
2021-10-02 15:02:00 +02:00
7f153df136
add since and removal flags to deprecation annotations
2021-10-02 14:45:26 +02:00
f6037e31bb
introduce modularity ( #55 )
2021-06-15 21:44:16 +02:00
3c11fe912b
enforce use of builder to create a new HTTPVaultConnector ( #54 )
...
continuous-integration/drone/push Build is passing
Remove constructors of HTTPVaultConnector and make the builder
constructor package-private to enforce use of .builder()....build()
For convenience we add direct builder constructors with a full URI
argument to allow a one-line initialization if necessary.
2021-06-12 12:01:52 +02:00
53d954ea12
deprecate all convenience methods to interact with "secret/" mount
...
continuous-integration/drone/push Build is passing
Follow-up deprecation for the not yet deprecated wrapper methods.
2021-06-12 10:46:10 +02:00
71564e87e8
remove convenience methods to interact with "secret/" mount ( #53 )
continuous-integration/drone/push Build is passing
2021-06-12 10:44:41 +02:00
e578591a49
deprecate convenience methods to interact with "secret/" mount ( #52 )
continuous-integration/drone/push Build is passing
2021-06-11 21:33:59 +02:00
de17f48be2
move builder into main package, introduce new invocation method ( #51 )
...
continuous-integration/drone/push Build is failing
The builder is target of major refactoring in the 1.0 development branch
so we introduce some delegate classes and methods to prepare migration.
2021-06-11 21:15:49 +02:00
ce24de7347
move builder class into main package, deprecate interface
continuous-integration/drone/push Build is passing
2021-06-11 20:49:38 +02:00
f783286909
pass builder as constructor parameter directly
...
With increasing number of options the constructors become quite overloaded.
We now pass the builder as only argument instead.
2021-06-11 20:49:38 +02:00
9ef709e3eb
specify version and removal flag for remaining deprecations
2021-06-08 18:35:01 +02:00
ce28b8eb60
use local variable type inference where reasonable
...
Local variables with obvious type on both sides of their declaration
use type inference now for more concise code. Some variable names are
given a more precise name though.
2021-06-08 18:24:19 +02:00
9346619237
remove deprecated SecretResponse#getValue() convenience method
...
continuous-integration/drone/push Build is passing
This method was deprecated since 0.5 and is basically a wrapper for
the more generic get("value").
2021-06-06 14:47:56 +02:00
df466a4dd2
remove deprecated AppRole- and TokenBuilder
continuous-integration/drone/push Build is passing
2021-06-06 12:56:36 +02:00
258a852f5c
Merge branch 'main' into develop
continuous-integration/drone/push Build is passing
2021-06-06 12:34:42 +02:00
bdf4fc4b83
fix typo in method AppRole.Builder#wit0hTokenPeriod ( #49 )
2021-06-06 12:02:01 +02:00
0f3ebc0bde
remove deprecated builder-style methods in InvalidResponseException
continuous-integration/drone/push Build is passing
2021-06-03 14:08:10 +02:00
ec4fbc5d3f
remove deprecated factory classes ( #46 )
...
continuous-integration/drone/push Build is passing
VaultConnectorFactory and its implementation have been deprecated since
0.8 in favor of VaultConnectorBuilder. Finally remove the old classes.
2021-06-03 11:46:24 +02:00
60d94fc5bb
use immutable Map.of() for fixed-size payloads
2021-06-01 18:54:16 +02:00
8dfcf02a0a
refactor RequestHelper use Java 11 instead of Apache HTTPClient
2021-06-01 18:54:16 +02:00
50d485fab8
clean up unused imports
continuous-integration/drone/push Build is passing
2021-04-02 11:27:24 +02:00
2b0f458da3
use pre-sized maps for fixed-size payloads
continuous-integration/drone/push Build is passing
2021-02-28 10:52:36 +01:00
63278c09c8
constructors of abstract VaultConnectorException protected
continuous-integration/drone/push Build is passing
2021-01-24 14:57:14 +01:00
dfb6d0a37c
only initialize trust managers if CA certificate is provided ( #43 )
continuous-integration/drone/push Build is passing
2021-01-24 12:20:45 +01:00
b46b59e4a0
update copyright notice to 2021
continuous-integration/drone/push Build is passing
2021-01-03 11:56:33 +01:00
aab76273a5
last minute JavaDoc corrections
2020-04-29 15:47:20 +02:00
1d5db0c365
add missing fields to Token model and builder ( #41 )
...
* explicit_max_ttl
* period
* entity_alias
2020-04-26 18:04:35 +02:00
9f80a7dada
typo fixes
2020-04-25 13:04:39 +02:00
fa7036921a
move builders into model classes and deprecate constructors
...
Enforces use of builder pattern in future releases. Builder API is
unchanged despite the class itself.
2020-04-15 17:29:50 +02:00
e0cbe34881
minor JavaDoc correction
...
[skip ci]
2020-04-15 16:29:42 +02:00
dcb8d6067a
update AppRole model and builder to current API
...
Add missing JSON fields and remove unprefixed, already deprecated fields
2020-04-15 16:28:14 +02:00
fc9e429bd1
add support for token roles ( #27 ) ( #37 )
2020-04-13 17:12:55 +02:00
edb9194153
Update copyright notice to 2020
...
Better late than never, at least before the next release... [skip ci]
2020-04-08 14:23:48 +02:00
c0708bd288
implement methods for token role handling ( #27 )
...
Create, update, read, delete and list token roles is now possible.
2020-04-06 18:36:42 +02:00
f54ba38cf5
implement TokenRole metamodel and corresponding builder
2020-04-06 17:58:11 +02:00
8f10bbfed7
add missing fields to token data
...
* entity_id
* expire_time
* explicit_max_ttl
* issue_time
* renewable
* type
2020-03-29 14:29:06 +02:00