From 3b57135510d6b9874f0cda8b5f12def1346e9519 Mon Sep 17 00:00:00 2001 From: Brian Saville Date: Sat, 23 Mar 2024 03:12:58 -0600 Subject: [PATCH] Fixes #323 to prevent serialization of token expiry (#325) Co-authored-by: saville --- .../AbstractVaultTokenCredentialWithExpiration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/datapipe/jenkins/vault/credentials/AbstractVaultTokenCredentialWithExpiration.java b/src/main/java/com/datapipe/jenkins/vault/credentials/AbstractVaultTokenCredentialWithExpiration.java index 2ff289f3..0cf695fe 100644 --- a/src/main/java/com/datapipe/jenkins/vault/credentials/AbstractVaultTokenCredentialWithExpiration.java +++ b/src/main/java/com/datapipe/jenkins/vault/credentials/AbstractVaultTokenCredentialWithExpiration.java @@ -44,8 +44,8 @@ public void setUsePolicies(Boolean usePolicies) { this.usePolicies = usePolicies; } - private Map tokenExpiry; - private Map tokenCache; + private transient Map tokenExpiry; + private transient Map tokenCache; protected AbstractVaultTokenCredentialWithExpiration(CredentialsScope scope, String id, String description) {