1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
44 * (that represent a "subject" in a <code>Policy</code>). |
44 * (that represent a "subject" in a <code>Policy</code>). |
45 * |
45 * |
46 */ |
46 */ |
47 class SubjectCodeSource extends CodeSource implements java.io.Serializable { |
47 class SubjectCodeSource extends CodeSource implements java.io.Serializable { |
48 |
48 |
|
49 @java.io.Serial |
49 private static final long serialVersionUID = 6039418085604715275L; |
50 private static final long serialVersionUID = 6039418085604715275L; |
50 |
51 |
51 private Subject subject; |
52 private Subject subject; |
52 private LinkedList<PrincipalEntry> principals; |
53 private LinkedList<PrincipalEntry> principals; |
53 private static final Class<?>[] PARAMS = { String.class }; |
54 private static final Class<?>[] PARAMS = { String.class }; |
54 private static final sun.security.util.Debug debug = |
55 private static final sun.security.util.Debug debug = |
55 sun.security.util.Debug.getInstance("auth", "\t[Auth Access]"); |
56 sun.security.util.Debug.getInstance("auth", "\t[Auth Access]"); |
|
57 @SuppressWarnings("serial") // Not statically typed as Serializable |
56 private ClassLoader sysClassLoader; |
58 private ClassLoader sysClassLoader; |
57 |
59 |
58 /** |
60 /** |
59 * Creates a new <code>SubjectCodeSource</code> |
61 * Creates a new <code>SubjectCodeSource</code> |
60 * with the given <code>Subject</code>, principals, <code>URL</code>, |
62 * with the given <code>Subject</code>, principals, <code>URL</code>, |