Fri, 24 Sep 2010 22:42:14 -0700
6891766: Vulnerabilities in use of reflection in CORBA
Reviewed-by: hawtin
duke@1 | 1 | /* |
ohair@158 | 2 | * Copyright (c) 2002, 2004, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | * |
duke@1 | 5 | * This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@158 | 7 | * published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | * |
duke@1 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | * accompanied this code). |
duke@1 | 16 | * |
duke@1 | 17 | * You should have received a copy of the GNU General Public License version |
duke@1 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | * |
ohair@158 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | * questions. |
duke@1 | 24 | */ |
duke@1 | 25 | |
duke@1 | 26 | package com.sun.corba.se.spi.orb ; |
duke@1 | 27 | |
duke@1 | 28 | import java.lang.reflect.Field ; |
duke@1 | 29 | |
duke@1 | 30 | import java.util.Map ; |
duke@1 | 31 | import java.util.Set ; |
duke@1 | 32 | import java.util.Iterator ; |
duke@1 | 33 | import java.util.Properties ; |
duke@1 | 34 | |
duke@1 | 35 | import org.omg.PortableInterceptor.ORBInitializer ; |
duke@1 | 36 | |
duke@1 | 37 | import com.sun.corba.se.pept.transport.Acceptor; |
duke@1 | 38 | |
duke@1 | 39 | import com.sun.corba.se.spi.ior.iiop.GIOPVersion ; |
duke@1 | 40 | import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory; |
duke@1 | 41 | import com.sun.corba.se.spi.transport.IORToSocketInfo; |
duke@1 | 42 | import com.sun.corba.se.spi.transport.IIOPPrimaryToContactInfo; |
duke@1 | 43 | import com.sun.corba.se.spi.transport.ReadTimeouts; |
duke@1 | 44 | |
duke@1 | 45 | import com.sun.corba.se.impl.legacy.connection.USLPort; |
duke@1 | 46 | import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ; |
duke@1 | 47 | |
duke@1 | 48 | public interface ORBData { |
duke@1 | 49 | public String getORBInitialHost() ; |
duke@1 | 50 | |
duke@1 | 51 | public int getORBInitialPort() ; |
duke@1 | 52 | |
duke@1 | 53 | public String getORBServerHost() ; |
duke@1 | 54 | |
duke@1 | 55 | public int getORBServerPort() ; |
duke@1 | 56 | |
duke@1 | 57 | public String getListenOnAllInterfaces(); |
duke@1 | 58 | |
duke@1 | 59 | public com.sun.corba.se.spi.legacy.connection.ORBSocketFactory getLegacySocketFactory () ; |
duke@1 | 60 | |
duke@1 | 61 | public com.sun.corba.se.spi.transport.ORBSocketFactory getSocketFactory(); |
duke@1 | 62 | |
duke@1 | 63 | public USLPort[] getUserSpecifiedListenPorts () ; |
duke@1 | 64 | |
duke@1 | 65 | public IORToSocketInfo getIORToSocketInfo(); |
duke@1 | 66 | |
duke@1 | 67 | public IIOPPrimaryToContactInfo getIIOPPrimaryToContactInfo(); |
duke@1 | 68 | |
duke@1 | 69 | public String getORBId() ; |
duke@1 | 70 | |
duke@1 | 71 | public boolean getORBServerIdPropertySpecified() ; |
duke@1 | 72 | |
duke@1 | 73 | public boolean isLocalOptimizationAllowed() ; |
duke@1 | 74 | |
duke@1 | 75 | public GIOPVersion getGIOPVersion() ; |
duke@1 | 76 | |
duke@1 | 77 | public int getHighWaterMark() ; |
duke@1 | 78 | |
duke@1 | 79 | public int getLowWaterMark() ; |
duke@1 | 80 | |
duke@1 | 81 | public int getNumberToReclaim() ; |
duke@1 | 82 | |
duke@1 | 83 | public int getGIOPFragmentSize() ; |
duke@1 | 84 | |
duke@1 | 85 | public int getGIOPBufferSize() ; |
duke@1 | 86 | |
duke@1 | 87 | public int getGIOPBuffMgrStrategy(GIOPVersion gv) ; |
duke@1 | 88 | |
duke@1 | 89 | /** |
duke@1 | 90 | * @return the GIOP Target Addressing preference of the ORB. |
duke@1 | 91 | * This ORB by default supports all addressing dispositions unless specified |
duke@1 | 92 | * otherwise via a java system property ORBConstants.GIOP_TARGET_ADDRESSING |
duke@1 | 93 | */ |
duke@1 | 94 | public short getGIOPTargetAddressPreference() ; |
duke@1 | 95 | |
duke@1 | 96 | public short getGIOPAddressDisposition() ; |
duke@1 | 97 | |
duke@1 | 98 | public boolean useByteOrderMarkers() ; |
duke@1 | 99 | |
duke@1 | 100 | public boolean useByteOrderMarkersInEncapsulations() ; |
duke@1 | 101 | |
duke@1 | 102 | public boolean alwaysSendCodeSetServiceContext() ; |
duke@1 | 103 | |
duke@1 | 104 | public boolean getPersistentPortInitialized() ; |
duke@1 | 105 | |
duke@1 | 106 | public int getPersistentServerPort(); |
duke@1 | 107 | |
duke@1 | 108 | public boolean getPersistentServerIdInitialized() ; |
duke@1 | 109 | |
duke@1 | 110 | /** Return the persistent-server-id of this server. This id is the same |
duke@1 | 111 | * across multiple activations of this server. This is in contrast to |
duke@1 | 112 | * com.sun.corba.se.impl.iiop.ORB.getTransientServerId() which |
duke@1 | 113 | * returns a transient id that is guaranteed to be different |
duke@1 | 114 | * across multiple activations of |
duke@1 | 115 | * this server. The user/environment is required to supply the |
duke@1 | 116 | * persistent-server-id every time this server is started, in |
duke@1 | 117 | * the ORBServerId parameter, System properties, or other means. |
duke@1 | 118 | * The user is also required to ensure that no two persistent servers |
duke@1 | 119 | * on the same host have the same server-id. |
duke@1 | 120 | */ |
duke@1 | 121 | public int getPersistentServerId(); |
duke@1 | 122 | |
duke@1 | 123 | public boolean getServerIsORBActivated() ; |
duke@1 | 124 | |
duke@1 | 125 | public Class getBadServerIdHandler(); |
duke@1 | 126 | |
duke@1 | 127 | /** |
duke@1 | 128 | * Get the prefered code sets for connections. Should the client send the |
duke@1 | 129 | * code set service context on every request? |
duke@1 | 130 | */ |
duke@1 | 131 | public CodeSetComponentInfo getCodeSetComponentInfo() ; |
duke@1 | 132 | |
duke@1 | 133 | public ORBInitializer[] getORBInitializers(); |
duke@1 | 134 | |
duke@1 | 135 | public StringPair[] getORBInitialReferences(); |
duke@1 | 136 | |
duke@1 | 137 | public String getORBDefaultInitialReference() ; |
duke@1 | 138 | |
duke@1 | 139 | public String[] getORBDebugFlags(); |
duke@1 | 140 | |
duke@1 | 141 | public Acceptor[] getAcceptors(); |
duke@1 | 142 | |
duke@1 | 143 | public CorbaContactInfoListFactory getCorbaContactInfoListFactory(); |
duke@1 | 144 | |
duke@1 | 145 | public String acceptorSocketType(); |
duke@1 | 146 | public boolean acceptorSocketUseSelectThreadToWait(); |
duke@1 | 147 | public boolean acceptorSocketUseWorkerThreadForEvent(); |
duke@1 | 148 | public String connectionSocketType(); |
duke@1 | 149 | public boolean connectionSocketUseSelectThreadToWait(); |
duke@1 | 150 | public boolean connectionSocketUseWorkerThreadForEvent(); |
duke@1 | 151 | |
duke@1 | 152 | public ReadTimeouts getTransportTCPReadTimeouts(); |
duke@1 | 153 | public boolean disableDirectByteBufferUse() ; |
duke@1 | 154 | public boolean isJavaSerializationEnabled(); |
duke@1 | 155 | public boolean useRepId(); |
duke@1 | 156 | } |
duke@1 | 157 | |
duke@1 | 158 | // End of file. |