< prev index next >

src/java.base/share/classes/jdk/internal/access/SharedSecrets.java

Print this page

        

*** 34,44 **** import java.io.FileDescriptor; import java.io.FilePermission; import java.io.ObjectInputStream; import java.io.RandomAccessFile; import java.security.ProtectionDomain; - import java.security.Signature; import jdk.internal.misc.Unsafe; /** A repository of "shared secrets", which are a mechanism for calling implementation-private methods in another package without using reflection. A package-private class implements a public --- 34,43 ----
*** 72,82 **** private static JavaAWTFontAccess javaAWTFontAccess; private static JavaBeansAccess javaBeansAccess; private static JavaObjectInputStreamAccess javaObjectInputStreamAccess; private static JavaObjectInputFilterAccess javaObjectInputFilterAccess; private static JavaIORandomAccessFileAccess javaIORandomAccessFileAccess; - private static JavaSecuritySignatureAccess javaSecuritySignatureAccess; private static JavaxCryptoSealedObjectAccess javaxCryptoSealedObjectAccess; public static JavaUtilJarAccess javaUtilJarAccess() { if (javaUtilJarAccess == null) { // Ensure JarFile is initialized; we know that this class --- 71,80 ----
*** 327,347 **** unsafe.ensureClassInitialized(RandomAccessFile.class); } return javaIORandomAccessFileAccess; } - public static void setJavaSecuritySignatureAccess(JavaSecuritySignatureAccess jssa) { - javaSecuritySignatureAccess = jssa; - } - - public static JavaSecuritySignatureAccess getJavaSecuritySignatureAccess() { - if (javaSecuritySignatureAccess == null) { - unsafe.ensureClassInitialized(Signature.class); - } - return javaSecuritySignatureAccess; - } - public static void setJavaxCryptoSealedObjectAccess(JavaxCryptoSealedObjectAccess jcsoa) { javaxCryptoSealedObjectAccess = jcsoa; } public static JavaxCryptoSealedObjectAccess getJavaxCryptoSealedObjectAccess() { --- 325,334 ----
< prev index next >