< prev index next >
src/java.base/share/classes/jdk/internal/misc/JavaSecurityAccess.java
Print this page
rev 51958 : 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn
rev 51959 : resolve JDK-8211122
*** 1,7 ****
/*
! * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 24,53 ****
*/
package jdk.internal.misc;
import java.security.AccessControlContext;
- import java.security.PermissionCollection;
import java.security.PrivilegedAction;
- import java.security.ProtectionDomain;
public interface JavaSecurityAccess {
-
<T> T doIntersectionPrivilege(PrivilegedAction<T> action,
AccessControlContext stack,
AccessControlContext context);
-
- <T> T doIntersectionPrivilege(PrivilegedAction<T> action,
- AccessControlContext context);
-
- ProtectionDomain[] getProtectDomains(AccessControlContext context);
-
- interface ProtectionDomainCache {
- void put(ProtectionDomain pd, PermissionCollection pc);
- PermissionCollection get(ProtectionDomain pd);
- }
-
- /**
- * Returns the ProtectionDomainCache.
- */
- ProtectionDomainCache getProtectionDomainCache();
}
--- 24,38 ----
*/
package jdk.internal.misc;
import java.security.AccessControlContext;
import java.security.PrivilegedAction;
+ /** This JavaSecurityAccess stub has to be kept in jdk.internal.misc in JDK 11 to keep
+ * sun.reflect.ReflectionFactory::newInstanceForSerialization working after backporting
+ * JDK-8211122 */
public interface JavaSecurityAccess {
<T> T doIntersectionPrivilege(PrivilegedAction<T> action,
AccessControlContext stack,
AccessControlContext context);
}
< prev index next >