Top Fields Constructors Methods
com.sun.jndi.ldap

public final Class VersionHelper

extends Object
Class Inheritance
Imports
jdk.internal.access.SharedSecrets, java.net.MalformedURLException, .URL, .URLClassLoader, java.security.AccessControlContext, .AccessController, .PrivilegedAction

Field Summary

Modifier and TypeField and Description
private static final VersionHelper
private static final boolean
trustSerialData

Determines whether objects may be deserialized or reconstructed from a content of 'javaSerializedData', 'javaRemoteLocation' or 'javaReferenceAddress' LDAP attributes.

private static final boolean
trustURLCodebase

Determines whether classes may be loaded from an arbitrary URL code base.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv Thread
private ClassLoader
private static String
getPrivilegedProperty(String propertyName, String defaultVal)

private static URL[]
pack-priv ClassLoader
pack-priv static VersionHelper
public static boolean

Returns:

true if deserialization is allowed; false - otherwise
isSerialDataAllowed
()

Returns true if deserialization or reconstruction of objects from 'javaSerializedData', 'javaRemoteLocation' and 'javaReferenceAddress' LDAP attributes is allowed.

pack-priv Class<?>
loadClass(String className)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private static final VersionHelper helper
trustSerialDataback to summary
private static final boolean trustSerialData

Determines whether objects may be deserialized or reconstructed from a content of 'javaSerializedData', 'javaRemoteLocation' or 'javaReferenceAddress' LDAP attributes.

trustURLCodebaseback to summary
private static final boolean trustURLCodebase

Determines whether classes may be loaded from an arbitrary URL code base.

Constructor Detail

VersionHelperback to summary
private VersionHelper()

Method Detail

createThreadback to summary
pack-priv Thread createThread(Runnable r)
Annotations
@SuppressWarnings:removal
getContextClassLoaderback to summary
private ClassLoader getContextClassLoader()
Annotations
@SuppressWarnings:removal
getPrivilegedPropertyback to summary
private static String getPrivilegedProperty(String propertyName, String defaultVal)
Annotations
@SuppressWarnings:removal
getUrlArrayback to summary
private static URL[] getUrlArray(String[] url) throws MalformedURLException
Annotations
@SuppressWarnings:deprecation
getURLClassLoaderback to summary
pack-priv ClassLoader getURLClassLoader(String[] url) throws MalformedURLException
getVersionHelperback to summary
pack-priv static VersionHelper getVersionHelper()
isSerialDataAllowedback to summary
public static boolean isSerialDataAllowed()

Returns true if deserialization or reconstruction of objects from 'javaSerializedData', 'javaRemoteLocation' and 'javaReferenceAddress' LDAP attributes is allowed.

Returns:boolean

true if deserialization is allowed; false - otherwise

loadClassback to summary
pack-priv Class<?> loadClass(String className) throws ClassNotFoundException