Fri, 24 Sep 2010 22:42:14 -0700
6891766: Vulnerabilities in use of reflection in CORBA
Reviewed-by: hawtin
1 /*
2 * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package org.omg.CORBA;
28 /**
29 * The interface for <tt>Policy</tt>. For more information on
30 * Operations interfaces, see <a href="doc-files/generatedfiles.html#operations">
31 * "Generated Files: Operations files"</a>.
32 *<P>
33 * org/omg/CORBA/PolicyOperations.java
34 * Generated by the IDL-to-Java compiler (portable), version "3.0"
35 * from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
36 * Saturday, July 17, 1999 12:26:20 AM PDT
37 */
39 /**
40 * Provides the operations for a <code>Policy</code> object.
41 */
42 public interface PolicyOperations
43 {
45 /**
46 * Returns the constant value that corresponds to the
47 * type of the policy object. The values of
48 * the policy objects are allocated by the OMG.
49 * New values for PolicyType should be obtained from the OMG by
50 * sending mail to request@omg.org. In general the constant
51 * values that are allocated are defined in conjunction with
52 * the definition of the corresponding policy object.
53 *
54 * @return the constant value that corresponds to the type of
55 * the policy object
56 */
57 int policy_type ();
59 /**
60 * Returns a copy of the <code>Policy</code> object. The copy does not retain
61 * any relationships that the policy had with any domain or object.
62 *
63 * @return a copy of the <code>Policy</code> object
64 */
65 org.omg.CORBA.Policy copy ();
67 /**
68 * Destroys the <code>Policy</code> object. It is the responsibility of
69 * the <code>Policy</code> object to determine whether it can be destroyed.
70 */
71 void destroy ();
72 } // interface PolicyOperations