src/main/java/ognl/OgnlRuntime.java
public static Permission getPermission(Method method)
    {
        Permission result;
        Class mc = method.getDeclaringClass();

        synchronized (_invokePermissionCache) {
            Map permissions = (Map) _invokePermissionCache.get(mc);

            if (permissions == null) {
                _invokePermissionCache.put(mc, permissions = new HashMap(101));
            }
            if ((result = (Permission) permissions.get(method.getName())) == null) {
                result = new OgnlInvokePermission("invoke." + mc.getName() + "." + method.getName());
                permissions.put(method.getName(), result);
            }
        }
        return result;
    }
public static Permission getPermission(Method method)
    {
        Permission result;
        Class mc = method.getDeclaringClass();

        synchronized (_invokePermissionCache) {
            Map permissions = (Map) _invokePermissionCache.get(mc);

            if (permissions == null) {
                _invokePermissionCache.put(mc, permissions = new HashMap(101));
            }
            if ((result = (Permission) permissions.get(method.getName())) == null) {
                result = new OgnlInvokePermission("invoke." + mc.getName() + "." + method.getName());
                permissions.put(method.getName(), result);
            }
        }
        return result;
    }
public static Permission getPermission ( Method method ) { Permission result ; Class mc = method . getDeclaringClass ( ) ; synchronized ( _invokePermissionCache ) { Map permissions = ( Map ) _invokePermissionCache . get ( mc ) ; if ( permissions == null ) { _invokePermissionCache . put ( mc , permissions = new HashMap ( 101 ) ) ; } if ( ( result = ( Permission ) permissions . get ( method . getName ( ) ) ) == null ) { result = new OgnlInvokePermission ( "invoke." + mc . getName ( ) + "." + method . getName ( ) ) ; permissions . put ( method . getName ( ) , result ) ; } } return result ; }
Permission will be named "invoke.<declaring-class>.<method-name>".
Permission will be named invoke . <declaring - class > . <method - name > .