All Packages Class Hierarchy This Package Previous Next Index
Class orbasec.corba.IOPUtil
java.lang.Object
|
+----orbasec.corba.IOPUtil
- public class IOPUtil
- extends Object
This class contains utility functions for manipulating IORs.
-
CONFIDENTIALITY
-
-
DETECTMISORDERING
-
-
DETECTREPLAY
-
-
ESTABLISHTRUSTINCLIENT
-
-
ESTABLISHTRUSTINTARGET
-
-
GSSKRB5
-
-
INTEGRITY
-
-
NOPROTECTION
-
-
SECIOP_PROFILE_TAG
-
-
SSLIOP_PROFILE_TAG
-
-
TAG_CSI_ECMA_Hybrid_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
-
TAG_CSI_ECMA_Public_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
-
TAG_CSI_ECMA_Secret_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
-
TAG_GENERIC_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
-
TAG_KerberosV5_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
-
TAG_SECIOP_INET_SEC_TRANS
- SECIOP protocol component
-
TAG_SPKM_1_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
-
TAG_SPKM_2_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
-
TAG_SSL_SEC_TRANS
- SSL Protocol Compoenent Tag.
-
IOPUtil()
-
-
add_profile(TaggedProfile, IOR)
- This helper function adds a profile to then end of
the profiles in an already existing
IOR.
-
add_to_create_iiop_profile(String, int, byte[], TaggedComponent[], IOR)
- This helper function takes the IOR finds the first IIOP profile
or creates one if it exists.
-
add_to_iiop_profile_body(TaggedComponent[], IOR)
- This function adds tagged components to an existing
IIOP Profilen in the IOR.
-
add_to_iiop_profile_body(TaggedComponent[], ProfileBody_1_1)
- This function adds tagged components to any existing components
in the given IIOP Version 1.1 Profile.
-
add_to_seciop_profile(String, int, byte[], TaggedComponent[], IOR)
- This helper function takes the IOR finds the first SECIOP profile
or creates one if it exists.
-
add_to_seciop_profile_body(TaggedComponent, IOR)
- This function adds tagged components to an existing
SECIOP Profile in the IOR..
-
add_to_seciop_profile_body(TaggedComponent[], IOR)
- This function adds tagged components to an existing
SECIOP Profile in the IOR.
-
add_to_seciop_profile_body(TaggedComponent[], ProfileBody_1_1)
- This function adds tagged components to any existing components
in the given SECIOP Profile.
-
add_to_ssliop_profile(String, byte[], TaggedComponent[], IOR)
- This helper function takes the IOR finds the first SSLIOP profile
or creates one if it exists.
-
add_to_ssliop_profile_body(TaggedComponent, IOR)
- This function adds tagged components to an existing
SSLIOP Profile in the IOR..
-
add_to_ssliop_profile_body(TaggedComponent[], IOR)
- This function adds tagged components to an existing
SSLIOP Profile in the IOR..
-
add_to_ssliop_profile_body(TaggedComponent[], ProfileBody_1_1)
- This function adds tagged components to any existing components
in the given SSLIOP Profile.
-
adjust_port(short)
- This function turns the short reprsenting the port number
and turns it into a integer.
-
compare_addr(ProfileBody_1_1, byte[])
- This helper function finds compares the host number
to the one in the given IIOP ProfileBody.
-
compare_addr_and_port(ProfileBody_1_1, byte[], int)
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution..
-
compare_addr_and_port(ProfileBody_1_1, byte[], short)
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution..
-
compare_host(ProfileBody_1_1, String)
- This helper function finds compares the host
to the one in the given IIOP ProfileBody taking into account
host lookup resolution.
-
compare_host_and_port(ProfileBody_1_1, String, int)
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution.
-
compare_host_and_port(ProfileBody_1_1, String, short)
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution.
-
compare_iiop_profile(IOR, IOR)
- This helper function finds compares the two IIOP profile bodies
for host and port comparison only.
-
compare_seciop_profile(IOR, IOR)
- This helper function finds compares the two IIOP profile bodies
for host and port comparison only.
-
compare_ssliop_profile(IOR, IOR)
- This helper function finds compares the two IIOP profile bodies
for host and port comparison only.
-
compare_tagged_component(TaggedComponent, TaggedComponent)
- Compares the two tagged components.
-
copyIOR(IOR)
- This function deep copies an IOR.
-
create_crypto_profile_string(short[])
- This function creates a crypto profile string, which is a
string of comma separated integers, from the array of
SECIOP::CryptoProfile
-
create_iiop_profile(ProfileBody_1_1)
- This function creates a tagged profile IIOP 1.1 out of
the profile body.
-
create_iiop_profile(String, int, byte[])
- This helper function generates the Tagged Profile for IIOP.
-
create_IOR(String, TaggedProfile[])
- This helper function creates the IOR with the profiles.
-
create_SECIOP_INET_SEC_TRANS(short)
-
-
create_seciop_profile(ProfileBody_1_1)
- This function creates a tagged profile SECIOP out of
the profile body.
-
create_seciop_profile(String, int, byte[])
- This helper function generates the Tagged Profile for SECIOP.
-
create_seciop_tagged_component(Credentials)
- This function writes out a SECIOP tagged component for the Credentials
object, if it understands the mechanism.
-
create_seciop_tagged_components(Credentials[])
-
-
create_ssliop_profile(ProfileBody_1_1)
- This function creates a tagged profile SSLIOP out of
the profile body.
-
create_ssliop_profile(String, byte[])
- This helper function generates the Tagged Profile for SSLIOP.
-
create_ssliop_tagged_component(Credentials, int)
- This function writes out a tagged component for the Credentials
object, if it understands the mechanism.
-
dump(IOR)
- Dumps all Profiles in the IOR.
-
dump(PrintStream, IOR)
- Dumps all the profiles in the IOR to the PrintWriter.
-
dump(PrintStream, String)
-
-
dump(PrintWriter, IOR)
- Dumps all the profiles in the IOR to the PrintWriter.
-
dump(PrintWriter, String)
-
-
dump(PrintWriter, TaggedComponent)
- Dumps the Tagged Security Component to the PrintWriter.
-
dump(PrintWriter, TaggedComponent[])
-
This function dumps a list of Tagged Compoents to the PrintWriter.
-
dump(String)
- This function dumps the IOR to the System.out.
-
dump(TaggedComponent)
- Dumps the Tagged Component to the System.out.
-
dump_profile(PrintWriter, TaggedProfile)
- Dumps the IOR Profile to the PrintWriter.
-
dump_profile(TaggedProfile)
- Dumps the IOR Profile to the System.out.
-
dump_profiles(IOR)
- Dumps all the profiles in the IOR to the System.out.
-
dump_profiles(PrintStream, IOR)
- Dumps all the profiles in the IOR to the PrintWriter.
-
dump_profiles(PrintWriter, IOR)
- Dumps all the profiles in the IOR to the PrintWriter.
-
dumpSecurityMechanismData(SecurityMechanismData)
- Dumps a security mechanism data structure to the System.out.
-
dumpSecurityMechanismData(SecurityMechanismData[])
- Dumps an array of security mechanism data out to the System.out.
-
equals(byte[], byte[])
- Compares two byte[] for equality
-
get_crypto_profilelist(String)
- Converts the mechanism name to a CryptographicProfileList
-
get_iiop_body(byte[])
- This function unmarshalls the IIOP Profile Data into a
IIOP 1.1 Profile body.
-
get_iiop_body(IOR)
- This helper function takes the IOR, finds the first iiop profile,
then returns the unmarshalled body as a IIOP 1.1 Profile body.
-
get_iiop_body_1_0(byte[])
- This function unmarshalls the IIOP Profile Data into a
IIOP 1.) Profile body.
-
get_iiop_body_1_0(IOR)
- This helper function takes the IOR, finds the first iiop profile,
then returns the unmarshalled body as a IIOP 1.0 Profile body.
-
get_iiop_host(IOR)
- This function returns the host found in
the first IIOP Profile of the IOR.
-
get_iiop_object_key(IOR)
- This function returns the object key found in
the first IIOP Profile of the IOR.
-
get_iiop_port(IOR)
- This function returns the port found in
the first IIOP Profile of the IOR.
-
get_iiop_profile(IOR)
- This helper function takes the IOR, finds the first IIOP profile
-
get_iiop_profile_components(IOR)
- Returns a list of security components in the IOR.
-
get_iiop_tagged_component(IOR, int)
- Retrieves the (first) tagged component with tag in array of
TaggedCompnents from the IIOP profile
-
get_ior(String)
- retrieves an IOR from a String reference.
-
get_object(ORB, String)
- This method returns a reference to a CORBA::Object, using the
reference passed in as a parameter.
-
get_object(String)
- This method is equivalent to
get_object( org.omg.CORBA.ORB.init(), reference );
-
get_profile(IOR, int)
- This helper function finds the first profile in the IOR by the tag
value.
-
get_profile_data(IOR, int)
- This helper function finds the first profile in the IOR by the tag
value and returns its data.
-
get_seciop_body(byte[])
- This function unmarshalls the SECIOP Profile Data into a
SECIOP Profile body.
-
get_seciop_body(IOR)
- This helper function takes the IOR, finds the first iiop profile,
then returns the unmarshalled body as a SECIOP Profile body.
-
get_seciop_host(IOR)
- This function returns the object key found in
the first SECIOP Profile of the IOR.
-
get_seciop_mechanism_names(IOR)
- Returns a list of mechanism (number, + crypto profiles)
from the SECIOP profile of the ior.
-
get_seciop_mechanism_string(TaggedComponent)
- Gets the mechanism string (with the crypto profiles)
from the SECIOP component.
-
get_seciop_object_key(IOR)
- This function returns the object key found in
the first SECIOP Profile of the IOR.
-
get_seciop_port(IOR)
- This function returns the object key found in
the first SECIOP Profile of the IOR.
-
get_seciop_profile(IOR)
- This helper function takes the IOR, finds the first SECIOP profile
-
get_seciop_profile_components(IOR)
- Returns a list of components in the SECIOP profile of
the IOR.
-
get_SECIOP_protocol_component(TaggedComponent[])
- Gets the SECIOP_INET_SEC_TRANS structure.
-
get_seciop_security_mechanism_data(TaggedComponent)
- Creates a SecurityMechanismData structure from the
relevant SECIOP tagged
component.
-
get_seciop_security_mechanisms(IOR)
- This retrieves the security mechanism data for all
security components found in the SECIOP Profile
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
-
get_seciop_tagged_component(IOR, int)
- Retrieves the (first) tagged component with tag in array of
TaggedCompnents from the SECIOP profile
-
get_security_mechanisms(IOR)
- This retrieves the security mechanism data for all
security components found in the SECIOP and SSLIOP
profiles
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
TAG_SSL_SEC_TRANS
This function returns null for a tagged component with
tags other than those listed above.
-
get_ssliop_body(byte[])
- This function unmarshalls the SSLIOP Profile Data into a
SSLIOP Profile body.
-
get_ssliop_body(IOR)
- This helper function takes the IOR, finds the first SSLIOP profile,
then returns the unmarshalled body as a SSLIOP Profile body.
-
get_ssliop_host(IOR)
- This function returns the object key found in
the first SSLIOP Profile of the IOR.
-
get_ssliop_mechanism_names(IOR)
- Returns a list of mechanism (number, + crypto profiles)
from the SSLIOP profile of the ior.
-
get_ssliop_mechanism_string(TaggedComponent)
- Gets the mechanism string (with the crypto profiles)
from the SSLIOP component.
-
get_ssliop_object_key(IOR)
- This function returns the object key found in
the first SSLIOP Profile of the IOR.
-
get_ssliop_port(IOR)
- This function returns the object key found in
the first SSLIOP Profile of the IOR.
-
get_ssliop_profile(IOR)
- This helper function takes the IOR, finds the first SSLIOP profile
-
get_ssliop_profile_components(IOR)
- Returns a list of components in the SSLIOP profile of the IOR.
-
get_SSLIOP_protocol_component(TaggedComponent[])
- Gets the SSL structure.
-
get_ssliop_security_mechanism_data(TaggedComponent)
- Creates a SecurityMechanismData structure from the
relevant SSLIOP tagged components.
-
get_ssliop_security_mechanisms(IOR)
- This retrieves the security mechanism data for all
security components found in the SSLIOP Profile
It only understands components with tags:
TAG_SSL_SEC_TRANS
-
get_ssliop_tagged_component(IOR, int)
- Retrieves the (first) tagged component with tag in array of
TaggedCompnents from the SSLIOP profile
-
get_tagged_component(TaggedComponent[], int)
- Retrieves the (first) tagged compoenent with tag in array of
TaggedCompnents.
-
ior_to_string(IOR)
- This helper function an "IOR:" string reference out of an IOR.
-
main(String[])
- This function dumps the IOR named in a file to the System.out.
-
replace_profile(TaggedProfile, IOR)
- This function replaces the (first) profile that matches the tag
in the IOR with the given profile.
-
string_to_ior(String)
- This helper function generates an IOR out of a string reference.
-
supports_iiop(IOR)
- This function stipulates whether the IOR supports IIOP.
-
supports_seciop(IOR)
- This function stipulates whether the IOR supports IIOP.
-
supports_ssliop(IOR)
- This function stipulates whether the IOR supports IIOP.
-
unmarshal_CSI_ECMA_Hybrid_SEC_MECH(TaggedComponent)
- Unmarshalls a CIS_ECMA_Hybrid structure.
-
unmarshal_CSI_ECMA_Public_SEC_MECH(TaggedComponent)
- Unmarshalls a CIS_ECMA_Public structure.
-
unmarshal_CSI_ECMA_Secret_SEC_MECH(TaggedComponent)
- Unmarshalls a CIS_ECMA_Secret structure.
-
unmarshal_GENERIC_SEC_MECH(TaggedComponent)
- Unmarshalls a GENERIC_SEC_MECH structure.
-
unmarshal_KerberosV5_SEC_MECH(TaggedComponent)
- Unmarhsalls a KerberosV5 structure.
-
unmarshal_SECIOP_INET_SEC_TRANS(TaggedComponent)
- Unmarshalls a SECIOP_INET_SEC_TRANS structure.
-
unmarshal_SPKM_1_SEC_MECH(TaggedComponent)
- Unmarshalls a SPKM_1 structure.
-
unmarshal_SPKM_2_SEC_MECH(TaggedComponent)
- Unmarshalls a SPKM_2 structure.
-
unmarshal_SSL_SEC_TRANS(TaggedComponent)
- Unmarshalls a SSLIOP::SSL structure.
SECIOP_PROFILE_TAG
public static int SECIOP_PROFILE_TAG
TAG_GENERIC_SEC_MECH
public static final int TAG_GENERIC_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
TAG_SPKM_1_SEC_MECH
public static final int TAG_SPKM_1_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
TAG_SPKM_2_SEC_MECH
public static final int TAG_SPKM_2_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
TAG_KerberosV5_SEC_MECH
public static final int TAG_KerberosV5_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
TAG_CSI_ECMA_Secret_SEC_MECH
public static final int TAG_CSI_ECMA_Secret_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
TAG_CSI_ECMA_Hybrid_SEC_MECH
public static final int TAG_CSI_ECMA_Hybrid_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
TAG_CSI_ECMA_Public_SEC_MECH
public static final int TAG_CSI_ECMA_Public_SEC_MECH
- A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
TAG_SECIOP_INET_SEC_TRANS
public static final int TAG_SECIOP_INET_SEC_TRANS
- SECIOP protocol component
SSLIOP_PROFILE_TAG
public static int SSLIOP_PROFILE_TAG
TAG_SSL_SEC_TRANS
public static final int TAG_SSL_SEC_TRANS
- SSL Protocol Compoenent Tag.
GSSKRB5
public static final String GSSKRB5
NOPROTECTION
public static final String NOPROTECTION
INTEGRITY
public static final String INTEGRITY
CONFIDENTIALITY
public static final String CONFIDENTIALITY
DETECTREPLAY
public static final String DETECTREPLAY
DETECTMISORDERING
public static final String DETECTMISORDERING
ESTABLISHTRUSTINTARGET
public static final String ESTABLISHTRUSTINTARGET
ESTABLISHTRUSTINCLIENT
public static final String ESTABLISHTRUSTINCLIENT
IOPUtil
public IOPUtil()
copyIOR
public static final IOR copyIOR(IOR ior)
- This function deep copies an IOR.
- Parameters:
- ior - The IOR to be copied;
- Returns:
- A deep copy of the IOR.
create_IOR
public static IOR create_IOR(String id,
TaggedProfile profiles[])
- This helper function creates the IOR with the profiles.
- Parameters:
- id - The string they use to identify the IOR. This
seems to be "".
- profiles - The sequence of profiles.
add_profile
public static void add_profile(TaggedProfile profile,
IOR ior)
- This helper function adds a profile to then end of
the profiles in an already existing
IOR.
- Parameters:
- ior - The object reference.
- profile - The profile to be added.
replace_profile
public static boolean replace_profile(TaggedProfile profile,
IOR ior)
- This function replaces the (first) profile that matches the tag
in the IOR with the given profile.
- Parameters:
- profile - The profile to be replaced.
- ior - The IOR. This argument is modified.
- Returns:
- true if a profile of the same tag exists in the IOR, and
it has been replaced.
get_profile
public static TaggedProfile get_profile(IOR ior,
int tag)
- This helper function finds the first profile in the IOR by the tag
value.
- Parameters:
- ior - The object reference.
- tag - The tag of the profile we are looking for.
- Returns:
- The profile. Returns
null if profile cannot be found.
get_profile_data
public static byte[] get_profile_data(IOR ior,
int tag)
- This helper function finds the first profile in the IOR by the tag
value and returns its data.
- Parameters:
- ior - The object reference.
- tag - The tag of the profile we are looking for.
- Returns:
- The profile data portion of the found profile. Returns
null if profile cannot be found.
get_iiop_profile
public static TaggedProfile get_iiop_profile(IOR ior)
- This helper function takes the IOR, finds the first IIOP profile
- Parameters:
- ior - The object reference.
- Returns:
- The IIOP profile.
add_to_create_iiop_profile
public static void add_to_create_iiop_profile(String host,
int port,
byte key[],
TaggedComponent tcs[],
IOR ior)
- This helper function takes the IOR finds the first IIOP profile
or creates one if it exists.
- Parameters:
- host - The host for the iiop profile.
- port - The IIOP port.
- key - The object key.
- tcs - The components to add.
- ior - The object reference. This may be modified if the
profile does not exist.
get_iiop_body_1_0
public static ProfileBody get_iiop_body_1_0(IOR ior)
- This helper function takes the IOR, finds the first iiop profile,
then returns the unmarshalled body as a IIOP 1.0 Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The IIOP profile body structure.
get_iiop_body_1_0
public static ProfileBody get_iiop_body_1_0(byte profile_data[])
- This function unmarshalls the IIOP Profile Data into a
IIOP 1.) Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The IIOP profile body structure.
get_iiop_body
public static ProfileBody_1_1 get_iiop_body(IOR ior)
- This helper function takes the IOR, finds the first iiop profile,
then returns the unmarshalled body as a IIOP 1.1 Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The IIOP profile body structure.
supports_iiop
public static boolean supports_iiop(IOR ior)
- This function stipulates whether the IOR supports IIOP.
Current the IIOP profile must exist and the port number
must not be zero.
get_iiop_body
public static ProfileBody_1_1 get_iiop_body(byte profile_data[])
- This function unmarshalls the IIOP Profile Data into a
IIOP 1.1 Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The IIOP profile body structure.
get_iiop_object_key
public static byte[] get_iiop_object_key(IOR ior)
- This function returns the object key found in
the first IIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The IIOP structure. Returns null if it
cannot be found in the IOR.
get_iiop_host
public static String get_iiop_host(IOR ior)
- This function returns the host found in
the first IIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_iiop_port
public static int get_iiop_port(IOR ior)
- This function returns the port found in
the first IIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_iiop_profile_components
public static TaggedComponent[] get_iiop_profile_components(IOR ior)
- Returns a list of security components in the IOR.
If an IIOP 1_1 Profile exists it gets them from the
tagged component list of that profile. If
MultipleComponent Profile exists, it gets them from the
components from there. If they both exist, the result is
addative, however, no duplicates are removed.
get_iiop_tagged_component
public static TaggedComponent get_iiop_tagged_component(IOR ior,
int tag)
- Retrieves the (first) tagged component with tag in array of
TaggedCompnents from the IIOP profile
- Parameters:
- ior - The IOR
- tag - The tag to search for
- Returns:
- (first) tagged component with tag
create_iiop_profile
public static TaggedProfile create_iiop_profile(ProfileBody_1_1 body)
- This function creates a tagged profile IIOP 1.1 out of
the profile body.
- Parameters:
- body - The IIOP 1.1 profile body.
- Returns:
- The new tagged profile.
create_iiop_profile
public static TaggedProfile create_iiop_profile(String host,
int port,
byte object_key[])
- This helper function generates the Tagged Profile for IIOP.
It creates an IIOP 1.1 profile with no tagged components.
- Parameters:
- host - The name of the host;
- port - The port the object is listening on.
- object_key - The key the ORB is using to discern the
object.
add_to_iiop_profile_body
public static boolean add_to_iiop_profile_body(TaggedComponent tcs[],
ProfileBody_1_1 body)
- This function adds tagged components to any existing components
in the given IIOP Version 1.1 Profile.
- Parameters:
- tcs - The tagged components to add to the body;
- body - The IIOP profile body. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
add_to_iiop_profile_body
public static boolean add_to_iiop_profile_body(TaggedComponent tcs[],
IOR ior)
- This function adds tagged components to an existing
IIOP Profilen in the IOR. If it used to be an IIOP 1.0
profile it is changed to an IIOP 1.1 profile.
- Parameters:
- tcs - The tagged components to add to the body;
- ior - The IOR. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
compare_iiop_profile
public static boolean compare_iiop_profile(IOR ior1,
IOR ior2)
- This helper function finds compares the two IIOP profile bodies
for host and port comparison only.
- Parameters:
- _body1 - The IIOP body from the IOR.
- _body2 - The IIOP body from the IOR.
- address - The inet address
- Returns:
- True if the host and port match the body.
get_seciop_profile
public static TaggedProfile get_seciop_profile(IOR ior)
- This helper function takes the IOR, finds the first SECIOP profile
- Parameters:
- ior - The object reference.
- Returns:
- The SSLIOP profile.
add_to_seciop_profile
public static void add_to_seciop_profile(String host,
int port,
byte key[],
TaggedComponent tcs[],
IOR ior)
- This helper function takes the IOR finds the first SECIOP profile
or creates one if it exists.
- Parameters:
- host - The host for the seciop profile.
- port - The SECIOP port.
- key - The object key.
- ior - The object reference. This may be modified if the
profile does not exist.
get_seciop_body
public static ProfileBody_1_1 get_seciop_body(IOR ior)
- This helper function takes the IOR, finds the first iiop profile,
then returns the unmarshalled body as a SECIOP Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The SECIOP profile body structure.
get_seciop_body
public static ProfileBody_1_1 get_seciop_body(byte profile_data[])
- This function unmarshalls the SECIOP Profile Data into a
SECIOP Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The SECIOP profile body structure.
supports_seciop
public static boolean supports_seciop(IOR ior)
- This function stipulates whether the IOR supports IIOP.
Currently the SECIOP profile must exist and the port number
must not be zero.
get_seciop_object_key
public static byte[] get_seciop_object_key(IOR ior)
- This function returns the object key found in
the first SECIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_seciop_host
public static String get_seciop_host(IOR ior)
- This function returns the object key found in
the first SECIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_seciop_port
public static int get_seciop_port(IOR ior)
- This function returns the object key found in
the first SECIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_seciop_profile_components
public static TaggedComponent[] get_seciop_profile_components(IOR ior)
- Returns a list of components in the SECIOP profile of
the IOR.
get_seciop_tagged_component
public static TaggedComponent get_seciop_tagged_component(IOR ior,
int tag)
- Retrieves the (first) tagged component with tag in array of
TaggedCompnents from the SECIOP profile
- Parameters:
- ior - The IOR
- tag - The tag to search for
- Returns:
- (first) tagged component with tag
create_seciop_profile
public static TaggedProfile create_seciop_profile(ProfileBody_1_1 body)
- This function creates a tagged profile SECIOP out of
the profile body.
- Parameters:
- body - The SECIOP profile body.
- Returns:
- The new tagged profile.
create_seciop_profile
public static TaggedProfile create_seciop_profile(String host,
int port,
byte object_key[])
- This helper function generates the Tagged Profile for SECIOP.
It creates SECIOP profile with no tagged components.
- Parameters:
- host - The name of the host;
- port - The port the object is listening on.
- object_key - The key the ORB is using to discern the
object.
add_to_seciop_profile_body
public static boolean add_to_seciop_profile_body(TaggedComponent tcs[],
ProfileBody_1_1 body)
- This function adds tagged components to any existing components
in the given SECIOP Profile.
- Parameters:
- tcs - The tagged components to add to the body;
- body - The SECIOP profile body. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
add_to_seciop_profile_body
public static boolean add_to_seciop_profile_body(TaggedComponent tc,
IOR ior)
- This function adds tagged components to an existing
SECIOP Profile in the IOR..
- Parameters:
- tc - The tagged component to add to the body;
- ior - The IOR. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
add_to_seciop_profile_body
public static boolean add_to_seciop_profile_body(TaggedComponent tcs[],
IOR ior)
- This function adds tagged components to an existing
SECIOP Profile in the IOR.
- Parameters:
- tcs - The tagged components to add to the body;
- ior - The IOR. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
compare_seciop_profile
public static boolean compare_seciop_profile(IOR ior1,
IOR ior2)
- This helper function finds compares the two IIOP profile bodies
for host and port comparison only.
- Parameters:
- _body1 - The IIOP body from the IOR.
- _body2 - The IIOP body from the IOR.
- address - The inet address
- Returns:
- True if the host and port match the body.
unmarshal_SECIOP_INET_SEC_TRANS
public static SECIOP_INET_SEC_TRANS unmarshal_SECIOP_INET_SEC_TRANS(TaggedComponent tc)
- Unmarshalls a SECIOP_INET_SEC_TRANS structure.
unmarshal_GENERIC_SEC_MECH
public static GenericMechanismInfo unmarshal_GENERIC_SEC_MECH(TaggedComponent tc)
- Unmarshalls a GENERIC_SEC_MECH structure.
unmarshal_SPKM_1_SEC_MECH
public static SPKM_1 unmarshal_SPKM_1_SEC_MECH(TaggedComponent tc)
- Unmarshalls a SPKM_1 structure.
unmarshal_SPKM_2_SEC_MECH
public static SPKM_2 unmarshal_SPKM_2_SEC_MECH(TaggedComponent tc)
- Unmarshalls a SPKM_2 structure.
unmarshal_KerberosV5_SEC_MECH
public static KerberosV5 unmarshal_KerberosV5_SEC_MECH(TaggedComponent tc)
- Unmarhsalls a KerberosV5 structure.
unmarshal_CSI_ECMA_Secret_SEC_MECH
public static CSI_ECMA_Secret unmarshal_CSI_ECMA_Secret_SEC_MECH(TaggedComponent tc)
- Unmarshalls a CIS_ECMA_Secret structure.
unmarshal_CSI_ECMA_Hybrid_SEC_MECH
public static CSI_ECMA_Hybrid unmarshal_CSI_ECMA_Hybrid_SEC_MECH(TaggedComponent tc)
- Unmarshalls a CIS_ECMA_Hybrid structure.
unmarshal_CSI_ECMA_Public_SEC_MECH
public static CSI_ECMA_Public unmarshal_CSI_ECMA_Public_SEC_MECH(TaggedComponent tc)
- Unmarshalls a CIS_ECMA_Public structure.
create_crypto_profile_string
public static String create_crypto_profile_string(short crypto_profiles[])
- This function creates a crypto profile string, which is a
string of comma separated integers, from the array of
SECIOP::CryptoProfile
get_SECIOP_protocol_component
public static SECIOP_INET_SEC_TRANS get_SECIOP_protocol_component(TaggedComponent tcs[])
- Gets the SECIOP_INET_SEC_TRANS structure. Null if there isn't one.
get_seciop_security_mechanism_data
public static SecurityMechanismData get_seciop_security_mechanism_data(TaggedComponent component)
- Creates a SecurityMechanismData structure from the
relevant SECIOP tagged
component.
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
This function returns null for a tagged component with
tags other than those listed above.
get_seciop_security_mechanisms
public static final SecurityMechanismData[] get_seciop_security_mechanisms(IOR ior)
- This retrieves the security mechanism data for all
security components found in the SECIOP Profile
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
get_seciop_mechanism_string
public static String get_seciop_mechanism_string(TaggedComponent component)
- Gets the mechanism string (with the crypto profiles)
from the SECIOP component.
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
This function returns null for a tagged component with
tags other than those listed above.
get_seciop_mechanism_names
public static String[] get_seciop_mechanism_names(IOR ior)
- Returns a list of mechanism (number, + crypto profiles)
from the SECIOP profile of the ior.
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
create_seciop_tagged_component
public static TaggedComponent create_seciop_tagged_component(Credentials creds)
- This function writes out a SECIOP tagged component for the Credentials
object, if it understands the mechanism. It depends on
the MechUtil translation of symbolic mechanism names to
tags and CryptographicProfile numbers, and it also depends
on Name encoding of the AccessId attribute of the credentials.
It only understands the tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
create_SECIOP_INET_SEC_TRANS
public static TaggedComponent create_SECIOP_INET_SEC_TRANS(short port)
create_seciop_tagged_components
public static TaggedComponent[] create_seciop_tagged_components(Credentials creds_list[])
get_ssliop_profile
public static TaggedProfile get_ssliop_profile(IOR ior)
- This helper function takes the IOR, finds the first SSLIOP profile
- Parameters:
- ior - The object reference.
- Returns:
- The SSLIOP profile.
add_to_ssliop_profile
public static void add_to_ssliop_profile(String host,
byte key[],
TaggedComponent tcs[],
IOR ior)
- This helper function takes the IOR finds the first SSLIOP profile
or creates one if it exists.
- Parameters:
- host - The host for the seciop profile.
- key - The object key.
- tcs - SSL Component(s).
- ior - The object reference. This may be modified if the
profile does not exist.
get_ssliop_body
public static ProfileBody_1_1 get_ssliop_body(IOR ior)
- This helper function takes the IOR, finds the first SSLIOP profile,
then returns the unmarshalled body as a SSLIOP Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The SSLIOP profile body structure.
get_ssliop_body
public static ProfileBody_1_1 get_ssliop_body(byte profile_data[])
- This function unmarshalls the SSLIOP Profile Data into a
SSLIOP Profile body.
- Parameters:
- ior - The object reference.
- Returns:
- The SSLIOP profile body structure.
supports_ssliop
public static boolean supports_ssliop(IOR ior)
- This function stipulates whether the IOR supports IIOP.
Currently the SECIOP profile must exist and the port number
must not be zero.
get_ssliop_object_key
public static byte[] get_ssliop_object_key(IOR ior)
- This function returns the object key found in
the first SSLIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_ssliop_host
public static String get_ssliop_host(IOR ior)
- This function returns the object key found in
the first SSLIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_ssliop_port
public static int get_ssliop_port(IOR ior)
- This function returns the object key found in
the first SSLIOP Profile of the IOR.
- Parameters:
- ior - The Interoperable Object Reference.
- Returns:
- The object key.
get_ssliop_profile_components
public static TaggedComponent[] get_ssliop_profile_components(IOR ior)
- Returns a list of components in the SSLIOP profile of the IOR.
get_ssliop_tagged_component
public static TaggedComponent get_ssliop_tagged_component(IOR ior,
int tag)
- Retrieves the (first) tagged component with tag in array of
TaggedCompnents from the SSLIOP profile
- Parameters:
- ior - The IOR
- tag - The tag to search for
- Returns:
- (first) tagged component with tag
create_ssliop_profile
public static TaggedProfile create_ssliop_profile(ProfileBody_1_1 body)
- This function creates a tagged profile SSLIOP out of
the profile body.
- Parameters:
- body - The SSLIOP profile body.
- Returns:
- The new tagged profile.
create_ssliop_profile
public static TaggedProfile create_ssliop_profile(String host,
byte object_key[])
- This helper function generates the Tagged Profile for SSLIOP.
It creates an SSLIOP profile with no tagged components.
- Parameters:
- host - The name of the host;
- port - The port the object is listening on.
- object_key - The key the ORB is using to discern the
object.
add_to_ssliop_profile_body
public static boolean add_to_ssliop_profile_body(TaggedComponent tcs[],
ProfileBody_1_1 body)
- This function adds tagged components to any existing components
in the given SSLIOP Profile.
- Parameters:
- tcs - The tagged components to add to the body;
- body - The SSLIOP profile body. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
add_to_ssliop_profile_body
public static boolean add_to_ssliop_profile_body(TaggedComponent tc,
IOR ior)
- This function adds tagged components to an existing
SSLIOP Profile in the IOR..
- Parameters:
- tc - The tagged component to add to the body;
- ior - The IOR. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
add_to_ssliop_profile_body
public static boolean add_to_ssliop_profile_body(TaggedComponent tcs[],
IOR ior)
- This function adds tagged components to an existing
SSLIOP Profile in the IOR..
- Parameters:
- tcs - The tagged components to add to the body;
- ior - The IOR. This argument is modified.
- Returns:
- True if tcs is not empty and components were added to the
body;
compare_ssliop_profile
public static boolean compare_ssliop_profile(IOR ior1,
IOR ior2)
- This helper function finds compares the two IIOP profile bodies
for host and port comparison only.
- Parameters:
- _body1 - The IIOP body from the IOR.
- _body2 - The IIOP body from the IOR.
- address - The inet address
- Returns:
- True if the host and port match the body.
unmarshal_SSL_SEC_TRANS
public static SSL unmarshal_SSL_SEC_TRANS(TaggedComponent tc)
- Unmarshalls a SSLIOP::SSL structure.
get_SSLIOP_protocol_component
public static SSL get_SSLIOP_protocol_component(TaggedComponent tcs[])
- Gets the SSL structure. Null if there isn't one.
get_ssliop_mechanism_string
public static String get_ssliop_mechanism_string(TaggedComponent component)
- Gets the mechanism string (with the crypto profiles)
from the SSLIOP component.
It only understands components with tags:
TAG_SSL_SEC_TRANS
This function returns null for a tagged component with
tags other than those listed above.
get_ssliop_security_mechanism_data
public static SecurityMechanismData get_ssliop_security_mechanism_data(TaggedComponent component)
- Creates a SecurityMechanismData structure from the
relevant SSLIOP tagged components.
It only understands components with tags:
This function returns null for a tagged component with
tags other than those listed above.
get_ssliop_security_mechanisms
public static final SecurityMechanismData[] get_ssliop_security_mechanisms(IOR ior)
- This retrieves the security mechanism data for all
security components found in the SSLIOP Profile
It only understands components with tags:
TAG_SSL_SEC_TRANS
get_ssliop_mechanism_names
public static String[] get_ssliop_mechanism_names(IOR ior)
- Returns a list of mechanism (number, + crypto profiles)
from the SSLIOP profile of the ior.
It only understands components with tags:
TAG_SSL_SEC_TRANS
create_ssliop_tagged_component
public static TaggedComponent create_ssliop_tagged_component(Credentials creds,
int port)
- This function writes out a tagged component for the Credentials
object, if it understands the mechanism. It depends on
the MechUtil translation of symbolic mechanism names to
tags and CryptographicProfile numbers, and it also depends
on Name encoding of the AccessId attribute of the credentials.
It only understands the tags:
TAG_SSL_SEC_TRANS
dump
public static void dump(String string_ior)
- This function dumps the IOR to the System.out.
- Parameters:
- args - The first argument should be a file name.
dump
public static void dump(PrintWriter pw,
String string_ior)
dump
public static void dump(PrintStream ps,
String string_ior)
dumpSecurityMechanismData
public static void dumpSecurityMechanismData(SecurityMechanismData data[])
- Dumps an array of security mechanism data out to the System.out.
dumpSecurityMechanismData
public static void dumpSecurityMechanismData(SecurityMechanismData data)
- Dumps a security mechanism data structure to the System.out.
get_crypto_profilelist
public static short[] get_crypto_profilelist(String mechanism)
- Converts the mechanism name to a CryptographicProfileList
get_security_mechanisms
public static SecurityMechanismData[] get_security_mechanisms(IOR ior)
- This retrieves the security mechanism data for all
security components found in the SECIOP and SSLIOP
profiles
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
TAG_SSL_SEC_TRANS
This function returns null for a tagged component with
tags other than those listed above.
dump
public static void dump(TaggedComponent tc)
- Dumps the Tagged Component to the System.out.
dump
public static void dump(PrintWriter out,
TaggedComponent tc)
- Dumps the Tagged Security Component to the PrintWriter.
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
TAG_SSL_SEC_TRANS
dump
public static void dump(PrintWriter out,
TaggedComponent tcs[])
- This function dumps a list of Tagged Compoents to the PrintWriter.
It only understands components with tags:
TAG_SPKM_1_SEC_MECH
TAG_SPKM_2_SEC_MECH
TAG_KerberosV5_SEC_MECH
TAG_CSI_ECMA_Secret_SEC_MECH
TAG_CSI_ECMA_Hybrid_SEC_MECH
TAG_CSI_ECMA_Public_SEC_MECH
TAG_SSL_SEC_TRANS
dump_profile
public static void dump_profile(TaggedProfile p)
- Dumps the IOR Profile to the System.out.
It only understands the
TAG_INTERNET_IOP_PROFILE
TAG_MULTIPLE_COMPONENT_PROFILE
dump_profile
public static void dump_profile(PrintWriter out,
TaggedProfile p)
- Dumps the IOR Profile to the PrintWriter.
It only understands the
TAG_INTERNET_IOP
TAG_MULTIPLE_COMPONENT
profiles.
dump_profiles
public static void dump_profiles(IOR ior)
- Dumps all the profiles in the IOR to the System.out.
It only understands the
TAG_INTERNET_IOP
TAG_MULTIPLE_COMPONENT
profiles.
dump_profiles
public static void dump_profiles(PrintWriter out,
IOR ior)
- Dumps all the profiles in the IOR to the PrintWriter.
It only understands the
TAG_INTERNET_IOP
TAG_MULTIPLE_COMPONENT
profiles.
dump_profiles
public static void dump_profiles(PrintStream out,
IOR ior)
- Dumps all the profiles in the IOR to the PrintWriter.
It only understands the
TAG_INTERNET_IOP
TAG_MULTIPLE_COMPONENT
profiles.
dump
public static void dump(PrintWriter out,
IOR ior)
- Dumps all the profiles in the IOR to the PrintWriter.
It only understands the
TAG_INTERNET_IOP
TAG_MULTIPLE_COMPONENT
profiles.
dump
public static void dump(PrintStream out,
IOR ior)
- Dumps all the profiles in the IOR to the PrintWriter.
It only understands the
TAG_INTERNET_IOP
TAG_MULTIPLE_COMPONENT
profiles.
dump
public static void dump(IOR ior)
- Dumps all Profiles in the IOR.
compare_tagged_component
public static final boolean compare_tagged_component(TaggedComponent comp1,
TaggedComponent comp2)
- Compares the two tagged components. Their tag must be equal
and their data must be equal. It does no CDR decoding.
- Parameters:
- comp1 - The component
- comp2 - The other componet
- Returns:
- true if the tags and data are equal
equals
public static final boolean equals(byte d1[],
byte d2[])
- Compares two byte[] for equality
get_tagged_component
public static TaggedComponent get_tagged_component(TaggedComponent component[],
int tag)
- Retrieves the (first) tagged compoenent with tag in array of
TaggedCompnents.
- Parameters:
- component - The array to search
- tag - The tag to search for
- Returns:
- (first) tagged compoenent with tag
compare_host_and_port
public static boolean compare_host_and_port(ProfileBody_1_1 _body,
String _host,
int _port) throws UnknownHostException
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution.
- Parameters:
- iiop_body - The IIOP body from the IOR.
- host - The hostname in either internet or canocial
(DNS) form.
- port - The port number.
- Returns:
- True if the host and port match the body.
compare_host_and_port
public static boolean compare_host_and_port(ProfileBody_1_1 _body,
String _host,
short _port) throws UnknownHostException
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution.
- Parameters:
- iiop_body - The IIOP body from the IOR.
- host - The hostname in either internet or canocial
(DNS) form.
- port - The port number.
- Returns:
- True if the host and port match the body.
compare_host
public static boolean compare_host(ProfileBody_1_1 _body,
String _host) throws UnknownHostException
- This helper function finds compares the host
to the one in the given IIOP ProfileBody taking into account
host lookup resolution.
- Parameters:
- iiop_body - The IIOP body from the IOR.
- host - The hostname in either internet or canocial
(DNS) form.
- Returns:
- True if the host matches the one in the body.
compare_addr_and_port
public static boolean compare_addr_and_port(ProfileBody_1_1 _body,
byte address[],
int _port) throws UnknownHostException
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution..
- Parameters:
- iiop_body - The IIOP body from the IOR.
- address - The inet address
- port - The port number.
- Returns:
- True if the host and port match the body.
adjust_port
public static int adjust_port(short _port)
- This function turns the short reprsenting the port number
and turns it into a integer. A port number is represented
by an unsigned short, but Java has no such thing. Turning
it into and int requires examining the short being negative
and adjusting it to a positive number (2's complement).
compare_addr_and_port
public static boolean compare_addr_and_port(ProfileBody_1_1 _body,
byte address[],
short _port) throws UnknownHostException
- This helper function finds compares the host and port number
to the one in the given IIOP ProfileBody taking into account
port number adjustment (negative short) and host lookup resolution..
- Parameters:
- iiop_body - The IIOP body from the IOR.
- address - The inet address
- port - The port number.
- Returns:
- True if the host and port match the body.
compare_addr
public static boolean compare_addr(ProfileBody_1_1 _body,
byte address[]) throws UnknownHostException
- This helper function finds compares the host number
to the one in the given IIOP ProfileBody.
- Parameters:
- iiop_body - The IIOP body from the IOR.
- address - The inet address
- Returns:
- True if the host and port match the body.
get_ior
public static String get_ior(String ref) throws IOException
- retrieves an IOR from a String reference.
A String reference can be:
- Parameters:
- ref - an Object reference; either an IOR or a URL
- Returns:
- the IOR, if it is an IOR, or the IOR at that URL
string_to_ior
public static IOR string_to_ior(String s)
- This helper function generates an IOR out of a string reference.
- Parameters:
- s - The string object reference starting with "IOR:"
- Returns:
- The IOR.
ior_to_string
public static String ior_to_string(IOR ior)
- This helper function an "IOR:" string reference out of an IOR.
- Parameters:
- s - The string object reference.
- Returns:
- The IOR.
get_object
public static Object get_object(ORB orb,
String reference)
- This method returns a reference to a CORBA::Object, using the
reference passed in as a parameter. This reference can be any one
of the following forms:
- Parameters:
- orb - This ORB will have string_to_object called on it
in order to create a CORBA::Object reference from an IOR
- reference - The String holding a resource from which a
CORBA::Object may be derived
- Returns:
- a CORBA::Object reference
get_object
public static Object get_object(String reference)
- This method is equivalent to
get_object( org.omg.CORBA.ORB.init(), reference );
- Parameters:
- reference - The String holding a resource from which a
CORBA::Object may be derived
- Returns:
- a CORBA::Object reference
main
public static void main(String args[])
- This function dumps the IOR named in a file to the System.out.
- Parameters:
- args - The first argument should be a file name.
All Packages Class Hierarchy This Package Previous Next Index