The permission_name is permission in table roles_permissions that defined in JdbcRealm.

protected static final String DEFAULT_PERMISSIONS_QUERY = "select permission from roles_permissions where role_name = ?";