static Policy getPolicy ( ) { final SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { return AccessController . doPrivileged ( new PrivilegedAction < Policy > ( ) { public Policy run ( ) { return Policy . getPolicy ( ) ; } } ) ; } else { return Policy . getPolicy ( ) ; } }
Returns the installed policy object .