File tree Expand file tree Collapse file tree 7 files changed +17
-8
lines changed
src/main/java/com/bettercloud/vault Expand file tree Collapse file tree 7 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 66import java .io .IOException ;
77import java .io .InputStream ;
88import java .io .InputStreamReader ;
9+ import java .io .Serializable ;
910import java .nio .file .Files ;
1011import java .nio .file .Paths ;
1112
3839 * <p>Note that when using the shorthand convenience constructor, you should NOT set additional properties on the
3940 * same instance afterward.</p>
4041 */
41- public class VaultConfig {
42+ public class VaultConfig implements Serializable {
4243
4344 /**
4445 * <p>The code used to load environment variables is encapsulated within an inner class,
4546 * so that a mock version of that environment loader can be used by unit tests.</p>
4647 */
47- static class EnvironmentLoader {
48+ static class EnvironmentLoader implements Serializable {
4849 public String loadVariable (final String name ) {
4950 String value = null ;
5051 if ("VAULT_TOKEN" .equals (name )) {
Original file line number Diff line number Diff line change 1010import com .bettercloud .vault .rest .RestResponse ;
1111import com .bettercloud .vault .rest .Rest ;
1212
13+ import java .io .Serializable ;
1314import java .io .UnsupportedEncodingException ;
1415import java .util .ArrayList ;
1516import java .util .List ;
@@ -29,7 +30,7 @@ public class Auth {
2930 *
3031 * <p>All properties are optional and can be <code>null</code>.</p>
3132 */
32- public static class TokenRequest {
33+ public static class TokenRequest implements Serializable {
3334 /**
3435 * (optional) The ID of the client token. Can only be specified by a root token. Otherwise, the token ID is a randomly generated UUID.
3536 */
Original file line number Diff line number Diff line change 11package com .bettercloud .vault .api .pki ;
22
3+ import java .io .Serializable ;
34import java .util .List ;
45
56/**
1819 * }</pre>
1920 * </blockquote>
2021 */
21- public class Credential {
22+ public class Credential implements Serializable {
2223
2324 private String certificate ;
2425 private String issuingCa ;
Original file line number Diff line number Diff line change 11package com .bettercloud .vault .api .pki ;
22
3+ import java .io .Serializable ;
34import java .util .ArrayList ;
45import java .util .List ;
56
1617 * }</pre>
1718 * </blockquote>
1819 */
19- public class RoleOptions {
20+ public class RoleOptions implements Serializable {
2021
2122 private String ttl ;
2223 private String maxTtl ;
Original file line number Diff line number Diff line change 55import com .bettercloud .vault .json .JsonObject ;
66import com .bettercloud .vault .rest .RestResponse ;
77
8+ import java .io .Serializable ;
9+
810/**
911 * This class is a container for the information returned by Vault in <code>v1/sys/health</code>
1012 * operations.
1113 */
12- public class HealthResponse {
14+ public class HealthResponse implements Serializable {
1315
1416 private RestResponse restResponse ;
1517 private int retries ;
Original file line number Diff line number Diff line change 33import com .bettercloud .vault .json .Json ;
44import com .bettercloud .vault .rest .RestResponse ;
55
6+ import java .io .Serializable ;
7+
68/**
79 * <p><code>VaultResponse</code> is a common base class for the response objects returned by
810 * all API methods. It contains the bare minimum of information common to all Vault
1517 * So the next major release will implement those fields directly in the subclasses where they're
1618 * used.
1719 */
18- public class VaultResponse {
20+ public class VaultResponse implements Serializable {
1921
2022 private RestResponse restResponse ;
2123 private int retries ;
Original file line number Diff line number Diff line change 11package com .bettercloud .vault .rest ;
22
3+ import java .io .Serializable ;
34import java .util .Arrays ;
45
56/**
67 * This class contains the metadata and data that was downloaded by <code>Rest</code>
78 * from an HTTP response.
89 */
9- public class RestResponse {
10+ public class RestResponse implements Serializable {
1011
1112 private int status ;
1213 private String mimeType ;
You can’t perform that action at this time.
0 commit comments