22
33import io .github .jopenlibs .vault .api .Auth ;
44import io .github .jopenlibs .vault .api .Debug ;
5- import io .github .jopenlibs .vault .api .Leases ;
65import io .github .jopenlibs .vault .api .Logical ;
7- import io .github .jopenlibs .vault .api .Seal ;
86import io .github .jopenlibs .vault .api .database .Database ;
9- import io .github .jopenlibs .vault .api .mounts .Mounts ;
107import io .github .jopenlibs .vault .api .pki .Pki ;
8+ import io .github .jopenlibs .vault .api .sys .Leases ;
9+ import io .github .jopenlibs .vault .api .sys .Seal ;
10+ import io .github .jopenlibs .vault .api .sys .Sys ;
11+ import io .github .jopenlibs .vault .api .sys .mounts .Mounts ;
1112import io .github .jopenlibs .vault .json .Json ;
1213import io .github .jopenlibs .vault .json .JsonObject ;
1314import io .github .jopenlibs .vault .json .JsonValue ;
@@ -182,6 +183,16 @@ public Auth auth() {
182183 return new Auth (vaultConfig );
183184 }
184185
186+ /**
187+ * Returns the implementing class for operations on Vault's <code>/v1/sys/*</code> REST
188+ * endpoints
189+ *
190+ * @return The implementing class for Vault's auth operations.
191+ */
192+ public Sys sys () {
193+ return new Sys (vaultConfig );
194+ }
195+
185196 /**
186197 * Returns the implementing class for Vault's PKI secret backend (i.e. <code>/v1/pki/*</code>
187198 * REST endpoints).
@@ -227,9 +238,8 @@ public Database database(final String mountPath) {
227238 }
228239
229240 /**
230- * Returns the implementing class for Vault's lease operations (e.g. revoke, revoke-prefix).
231- *
232- * @return The implementing class for Vault's lease operations (e.g. revoke, revoke-prefix).
241+ * @see Sys#leases()
242+ * @deprecated This method is deprecated and in future it will be removed
233243 */
234244 public Leases leases () {
235245 return new Leases (vaultConfig );
@@ -245,19 +255,16 @@ public Debug debug() {
245255 }
246256
247257 /**
248- * Returns the implementing class for Vault's sys mounts operations (i.e.
249- * <code>/v1/sys/mounts/*</code> REST endpoints).
250- *
251- * @return the implementing class for Vault's sys mounts operations
258+ * @see Sys#mounts()
259+ * @deprecated This method is deprecated and in future it will be removed
252260 */
253261 public Mounts mounts () {
254262 return new Mounts (vaultConfig );
255263 }
256264
257265 /**
258- * Returns the implementing class for Vault's seal operations (e.g. seal, unseal, sealStatus).
259- *
260- * @return The implementing class for Vault's seal operations (e.g. seal, unseal, sealStatus).
266+ * @see Sys#seal()
267+ * @deprecated This method is deprecated and in future it will be removed
261268 */
262269 public Seal seal () {
263270 return new Seal (vaultConfig );
0 commit comments