Mercurial > hg > release > icedtea7-forest-2.3 > jdk
changeset 6399:8903edf477cf
8024306: Enhance Subject consistency
Summary: Also reviewed by Alexander Fomin
Reviewed-by: mullan, ahgross
author | weijun |
---|---|
date | Fri, 13 Sep 2013 15:17:31 +0800 |
parents | 9716ade5079d |
children | c31a79eedba2 |
files | src/share/classes/javax/security/auth/Subject.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/javax/security/auth/Subject.java Mon Sep 02 16:56:33 2013 +0400 +++ b/src/share/classes/javax/security/auth/Subject.java Fri Sep 13 15:17:31 2013 +0800 @@ -946,6 +946,10 @@ s.defaultReadObject(); + // Rewrap the principals into a SecureSet + principals = Collections.synchronizedSet(new SecureSet<Principal> + (this, PRINCIPAL_SET, principals)); + // The Credential <code>Set</code> is not serialized, but we do not // want the default deserialization routine to set it to null. this.pubCredentials = Collections.synchronizedSet