Microsoft SDK for Java

checkPackageDefinitionFromClassName

This method of the StandardSecurityManager Class, if a security manager is installed, checks to see if applets can define classes in the package of the specified class name.

Syntax

public static void checkPackageDefinitionFromClassName(String classname);

Parameters

classname The name of the class that determines which package to check. The class name must be separated from the package name (if any) by a dot (.).

Remarks

The checkPackageDefinition method of the current security manager is called to determine if the package definition is allowed. If the class name does not specify a package, the call will succeed. If a security manager is not installed, this method does nothing.

Note   This method expects a full class name. Do not trim off the class name as you would when calling java.lang.SecurityManager.checkPackageDefinition.

Exceptions

SecurityException if the package definition is prohibited.

See Also

checkPackageDefinition

© 1999 Microsoft Corporation. All rights reserved. Terms of use.