public ProtectionDomain getProtectionDomain ()

Returns the ProtectionDomain of this class. If there is a security manager installed, this method first calls the security manager's checkPermission method with a RuntimePermission("getProtectionDomain") permission to ensure it's ok to get the ProtectionDomain.

Returns:  the ProtectionDomain of this class

SecurityException     if a security manager exists and its checkPermission method doesn't allow getting the ProtectionDomain.

See also:, SecurityManager.checkPermission, java.lang.RuntimePermission

Since:  1.2