Skip to content

Commit

Permalink
TKSS-641: Backport JDK-8286503: Enhance security classes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshajiang committed Jan 17, 2024
1 parent 4963117 commit 6ce8e73
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ private void readObject(java.io.ObjectInputStream s)
}
}
}

// Use the cleaner to zero the key when no longer referenced
final byte[] k = this.key;
sweeper.register(this,
() -> Arrays.fill(k, (byte) 0x00));
}


Expand Down

0 comments on commit 6ce8e73

Please sign in to comment.