Skip to content

Commit 3b57135

Browse files
bluesliverxsaville
and
saville
authored
Fixes #323 to prevent serialization of token expiry (#325)
Co-authored-by: saville <[email protected]>
1 parent 22d5fab commit 3b57135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/datapipe/jenkins/vault/credentials/AbstractVaultTokenCredentialWithExpiration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public void setUsePolicies(Boolean usePolicies) {
4444
this.usePolicies = usePolicies;
4545
}
4646

47-
private Map<String, Calendar> tokenExpiry;
48-
private Map<String, String> tokenCache;
47+
private transient Map<String, Calendar> tokenExpiry;
48+
private transient Map<String, String> tokenCache;
4949

5050
protected AbstractVaultTokenCredentialWithExpiration(CredentialsScope scope, String id,
5151
String description) {

0 commit comments

Comments
 (0)