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.


Variable Index

 o CONFIDENTIALITY
 o DETECTMISORDERING
 o DETECTREPLAY
 o ESTABLISHTRUSTINCLIENT
 o ESTABLISHTRUSTINTARGET
 o GSSKRB5
 o INTEGRITY
 o NOPROTECTION
 o SECIOP_PROFILE_TAG
 o SSLIOP_PROFILE_TAG
 o TAG_CSI_ECMA_Hybrid_SEC_MECH
A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
 o TAG_CSI_ECMA_Public_SEC_MECH
A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
 o TAG_CSI_ECMA_Secret_SEC_MECH
A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
 o TAG_GENERIC_SEC_MECH
A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
 o TAG_KerberosV5_SEC_MECH
A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
 o TAG_SECIOP_INET_SEC_TRANS
SECIOP protocol component
 o TAG_SPKM_1_SEC_MECH
A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
 o TAG_SPKM_2_SEC_MECH
A.11.4 SECIOP Security Mechanisms Page 15-298 v1.2 5 Jan 1998
 o TAG_SSL_SEC_TRANS
SSL Protocol Compoenent Tag.

Constructor Index

 o IOPUtil()

Method Index

 o add_profile(TaggedProfile, IOR)
This helper function adds a profile to then end of the profiles in an already existing IOR.
 o 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.
 o add_to_iiop_profile_body(TaggedComponent[], IOR)
This function adds tagged components to an existing IIOP Profilen in the IOR.
 o 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.
 o 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.
 o add_to_seciop_profile_body(TaggedComponent, IOR)
This function adds tagged components to an existing SECIOP Profile in the IOR..
 o add_to_seciop_profile_body(TaggedComponent[], IOR)
This function adds tagged components to an existing SECIOP Profile in the IOR.
 o add_to_seciop_profile_body(TaggedComponent[], ProfileBody_1_1)
This function adds tagged components to any existing components in the given SECIOP Profile.
 o 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.
 o add_to_ssliop_profile_body(TaggedComponent, IOR)
This function adds tagged components to an existing SSLIOP Profile in the IOR..
 o add_to_ssliop_profile_body(TaggedComponent[], IOR)
This function adds tagged components to an existing SSLIOP Profile in the IOR..
 o add_to_ssliop_profile_body(TaggedComponent[], ProfileBody_1_1)
This function adds tagged components to any existing components in the given SSLIOP Profile.
 o adjust_port(short)
This function turns the short reprsenting the port number and turns it into a integer.
 o compare_addr(ProfileBody_1_1, byte[])
This helper function finds compares the host number to the one in the given IIOP ProfileBody.
 o 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..
 o 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..
 o 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.
 o 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.
 o 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.
 o compare_iiop_profile(IOR, IOR)
This helper function finds compares the two IIOP profile bodies for host and port comparison only.
 o compare_seciop_profile(IOR, IOR)
This helper function finds compares the two IIOP profile bodies for host and port comparison only.
 o compare_ssliop_profile(IOR, IOR)
This helper function finds compares the two IIOP profile bodies for host and port comparison only.
 o compare_tagged_component(TaggedComponent, TaggedComponent)
Compares the two tagged components.
 o copyIOR(IOR)
This function deep copies an IOR.
 o 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
 o create_iiop_profile(ProfileBody_1_1)
This function creates a tagged profile IIOP 1.1 out of the profile body.
 o create_iiop_profile(String, int, byte[])
This helper function generates the Tagged Profile for IIOP.
 o create_IOR(String, TaggedProfile[])
This helper function creates the IOR with the profiles.
 o create_SECIOP_INET_SEC_TRANS(short)
 o create_seciop_profile(ProfileBody_1_1)
This function creates a tagged profile SECIOP out of the profile body.
 o create_seciop_profile(String, int, byte[])
This helper function generates the Tagged Profile for SECIOP.
 o create_seciop_tagged_component(Credentials)
This function writes out a SECIOP tagged component for the Credentials object, if it understands the mechanism.
 o create_seciop_tagged_components(Credentials[])
 o create_ssliop_profile(ProfileBody_1_1)
This function creates a tagged profile SSLIOP out of the profile body.
 o create_ssliop_profile(String, byte[])
This helper function generates the Tagged Profile for SSLIOP.
 o create_ssliop_tagged_component(Credentials, int)
This function writes out a tagged component for the Credentials object, if it understands the mechanism.
 o dump(IOR)
Dumps all Profiles in the IOR.
 o dump(PrintStream, IOR)
Dumps all the profiles in the IOR to the PrintWriter.
 o dump(PrintStream, String)
 o dump(PrintWriter, IOR)
Dumps all the profiles in the IOR to the PrintWriter.
 o dump(PrintWriter, String)
 o dump(PrintWriter, TaggedComponent)
Dumps the Tagged Security Component to the PrintWriter.
 o dump(PrintWriter, TaggedComponent[])
This function dumps a list of Tagged Compoents to the PrintWriter.
 o dump(String)
This function dumps the IOR to the System.out.
 o dump(TaggedComponent)
Dumps the Tagged Component to the System.out.
 o dump_profile(PrintWriter, TaggedProfile)
Dumps the IOR Profile to the PrintWriter.
 o dump_profile(TaggedProfile)
Dumps the IOR Profile to the System.out.
 o dump_profiles(IOR)
Dumps all the profiles in the IOR to the System.out.
 o dump_profiles(PrintStream, IOR)
Dumps all the profiles in the IOR to the PrintWriter.
 o dump_profiles(PrintWriter, IOR)
Dumps all the profiles in the IOR to the PrintWriter.
 o dumpSecurityMechanismData(SecurityMechanismData)
Dumps a security mechanism data structure to the System.out.
 o dumpSecurityMechanismData(SecurityMechanismData[])
Dumps an array of security mechanism data out to the System.out.
 o equals(byte[], byte[])
Compares two byte[] for equality
 o get_crypto_profilelist(String)
Converts the mechanism name to a CryptographicProfileList
 o get_iiop_body(byte[])
This function unmarshalls the IIOP Profile Data into a IIOP 1.1 Profile body.
 o 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.
 o get_iiop_body_1_0(byte[])
This function unmarshalls the IIOP Profile Data into a IIOP 1.) Profile body.
 o 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.
 o get_iiop_host(IOR)
This function returns the host found in the first IIOP Profile of the IOR.
 o get_iiop_object_key(IOR)
This function returns the object key found in the first IIOP Profile of the IOR.
 o get_iiop_port(IOR)
This function returns the port found in the first IIOP Profile of the IOR.
 o get_iiop_profile(IOR)
This helper function takes the IOR, finds the first IIOP profile
 o get_iiop_profile_components(IOR)
Returns a list of security components in the IOR.
 o get_iiop_tagged_component(IOR, int)
Retrieves the (first) tagged component with tag in array of TaggedCompnents from the IIOP profile
 o get_ior(String)
retrieves an IOR from a String reference.
 o get_object(ORB, String)
This method returns a reference to a CORBA::Object, using the reference passed in as a parameter.
 o get_object(String)
This method is equivalent to
     get_object( org.omg.CORBA.ORB.init(), reference );
 
 o get_profile(IOR, int)
This helper function finds the first profile in the IOR by the tag value.
 o get_profile_data(IOR, int)
This helper function finds the first profile in the IOR by the tag value and returns its data.
 o get_seciop_body(byte[])
This function unmarshalls the SECIOP Profile Data into a SECIOP Profile body.
 o 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.
 o get_seciop_host(IOR)
This function returns the object key found in the first SECIOP Profile of the IOR.
 o get_seciop_mechanism_names(IOR)
Returns a list of mechanism (number, + crypto profiles) from the SECIOP profile of the ior.
 o get_seciop_mechanism_string(TaggedComponent)
Gets the mechanism string (with the crypto profiles) from the SECIOP component.
 o get_seciop_object_key(IOR)
This function returns the object key found in the first SECIOP Profile of the IOR.
 o get_seciop_port(IOR)
This function returns the object key found in the first SECIOP Profile of the IOR.
 o get_seciop_profile(IOR)
This helper function takes the IOR, finds the first SECIOP profile
 o get_seciop_profile_components(IOR)
Returns a list of components in the SECIOP profile of the IOR.
 o get_SECIOP_protocol_component(TaggedComponent[])
Gets the SECIOP_INET_SEC_TRANS structure.
 o get_seciop_security_mechanism_data(TaggedComponent)
Creates a SecurityMechanismData structure from the relevant SECIOP tagged component.
 o 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
 
 o get_seciop_tagged_component(IOR, int)
Retrieves the (first) tagged component with tag in array of TaggedCompnents from the SECIOP profile
 o 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.
 o get_ssliop_body(byte[])
This function unmarshalls the SSLIOP Profile Data into a SSLIOP Profile body.
 o 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.
 o get_ssliop_host(IOR)
This function returns the object key found in the first SSLIOP Profile of the IOR.
 o get_ssliop_mechanism_names(IOR)
Returns a list of mechanism (number, + crypto profiles) from the SSLIOP profile of the ior.
 o get_ssliop_mechanism_string(TaggedComponent)
Gets the mechanism string (with the crypto profiles) from the SSLIOP component.
 o get_ssliop_object_key(IOR)
This function returns the object key found in the first SSLIOP Profile of the IOR.
 o get_ssliop_port(IOR)
This function returns the object key found in the first SSLIOP Profile of the IOR.
 o get_ssliop_profile(IOR)
This helper function takes the IOR, finds the first SSLIOP profile
 o get_ssliop_profile_components(IOR)
Returns a list of components in the SSLIOP profile of the IOR.
 o get_SSLIOP_protocol_component(TaggedComponent[])
Gets the SSL structure.
 o get_ssliop_security_mechanism_data(TaggedComponent)
Creates a SecurityMechanismData structure from the relevant SSLIOP tagged components.
 o 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
 
 o get_ssliop_tagged_component(IOR, int)
Retrieves the (first) tagged component with tag in array of TaggedCompnents from the SSLIOP profile
 o get_tagged_component(TaggedComponent[], int)
Retrieves the (first) tagged compoenent with tag in array of TaggedCompnents.
 o ior_to_string(IOR)
This helper function an "IOR:" string reference out of an IOR.
 o main(String[])
This function dumps the IOR named in a file to the System.out.
 o replace_profile(TaggedProfile, IOR)
This function replaces the (first) profile that matches the tag in the IOR with the given profile.
 o string_to_ior(String)
This helper function generates an IOR out of a string reference.
 o supports_iiop(IOR)
This function stipulates whether the IOR supports IIOP.
 o supports_seciop(IOR)
This function stipulates whether the IOR supports IIOP.
 o supports_ssliop(IOR)
This function stipulates whether the IOR supports IIOP.
 o unmarshal_CSI_ECMA_Hybrid_SEC_MECH(TaggedComponent)
Unmarshalls a CIS_ECMA_Hybrid structure.
 o unmarshal_CSI_ECMA_Public_SEC_MECH(TaggedComponent)
Unmarshalls a CIS_ECMA_Public structure.
 o unmarshal_CSI_ECMA_Secret_SEC_MECH(TaggedComponent)
Unmarshalls a CIS_ECMA_Secret structure.
 o unmarshal_GENERIC_SEC_MECH(TaggedComponent)
Unmarshalls a GENERIC_SEC_MECH structure.
 o unmarshal_KerberosV5_SEC_MECH(TaggedComponent)
Unmarhsalls a KerberosV5 structure.
 o unmarshal_SECIOP_INET_SEC_TRANS(TaggedComponent)
Unmarshalls a SECIOP_INET_SEC_TRANS structure.
 o unmarshal_SPKM_1_SEC_MECH(TaggedComponent)
Unmarshalls a SPKM_1 structure.
 o unmarshal_SPKM_2_SEC_MECH(TaggedComponent)
Unmarshalls a SPKM_2 structure.
 o unmarshal_SSL_SEC_TRANS(TaggedComponent)
Unmarshalls a SSLIOP::SSL structure.

Variables

 o SECIOP_PROFILE_TAG
 public static int SECIOP_PROFILE_TAG
 o 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

 o 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

 o 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

 o 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

 o 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

 o 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

 o 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

 o TAG_SECIOP_INET_SEC_TRANS
 public static final int TAG_SECIOP_INET_SEC_TRANS
SECIOP protocol component

 o SSLIOP_PROFILE_TAG
 public static int SSLIOP_PROFILE_TAG
 o TAG_SSL_SEC_TRANS
 public static final int TAG_SSL_SEC_TRANS
SSL Protocol Compoenent Tag.

 o GSSKRB5
 public static final String GSSKRB5
 o NOPROTECTION
 public static final String NOPROTECTION
 o INTEGRITY
 public static final String INTEGRITY
 o CONFIDENTIALITY
 public static final String CONFIDENTIALITY
 o DETECTREPLAY
 public static final String DETECTREPLAY
 o DETECTMISORDERING
 public static final String DETECTMISORDERING
 o ESTABLISHTRUSTINTARGET
 public static final String ESTABLISHTRUSTINTARGET
 o ESTABLISHTRUSTINCLIENT
 public static final String ESTABLISHTRUSTINCLIENT

Constructors

 o IOPUtil
 public IOPUtil()

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.

 o 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
 o 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.
 o 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.
 o 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;
 o 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;
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.

 o 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.
 o 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.
 o 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.
 o 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.

 o 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
 o 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.
 o 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.
 o 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;
 o 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;
 o 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;
 o 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.
 o 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.

 o unmarshal_GENERIC_SEC_MECH
 public static GenericMechanismInfo unmarshal_GENERIC_SEC_MECH(TaggedComponent tc)
Unmarshalls a GENERIC_SEC_MECH structure.

 o unmarshal_SPKM_1_SEC_MECH
 public static SPKM_1 unmarshal_SPKM_1_SEC_MECH(TaggedComponent tc)
Unmarshalls a SPKM_1 structure.

 o unmarshal_SPKM_2_SEC_MECH
 public static SPKM_2 unmarshal_SPKM_2_SEC_MECH(TaggedComponent tc)
Unmarshalls a SPKM_2 structure.

 o unmarshal_KerberosV5_SEC_MECH
 public static KerberosV5 unmarshal_KerberosV5_SEC_MECH(TaggedComponent tc)
Unmarhsalls a KerberosV5 structure.

 o 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.

 o 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.

 o 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.

 o 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

 o 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.

 o 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.

 o 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
 

 o 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.

 o 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
 

 o 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
 

 o create_SECIOP_INET_SEC_TRANS
 public static TaggedComponent create_SECIOP_INET_SEC_TRANS(short port)
 o create_seciop_tagged_components
 public static TaggedComponent[] create_seciop_tagged_components(Credentials creds_list[])
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.

 o 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.
 o 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.
 o 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.
 o 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.

 o 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
 o 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.
 o 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.
 o 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;
 o 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;
 o 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;
 o 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.
 o unmarshal_SSL_SEC_TRANS
 public static SSL unmarshal_SSL_SEC_TRANS(TaggedComponent tc)
Unmarshalls a SSLIOP::SSL structure.

 o get_SSLIOP_protocol_component
 public static SSL get_SSLIOP_protocol_component(TaggedComponent tcs[])
Gets the SSL structure. Null if there isn't one.

 o 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.

 o 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.

 o 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
 

 o 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
 

 o 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
 

 o 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.
 o dump
 public static void dump(PrintWriter pw,
                         String string_ior)
 o dump
 public static void dump(PrintStream ps,
                         String string_ior)
 o dumpSecurityMechanismData
 public static void dumpSecurityMechanismData(SecurityMechanismData data[])
Dumps an array of security mechanism data out to the System.out.

 o dumpSecurityMechanismData
 public static void dumpSecurityMechanismData(SecurityMechanismData data)
Dumps a security mechanism data structure to the System.out.

 o get_crypto_profilelist
 public static short[] get_crypto_profilelist(String mechanism)
Converts the mechanism name to a CryptographicProfileList

 o 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.

 o dump
 public static void dump(TaggedComponent tc)
Dumps the Tagged Component to the System.out.

 o 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
 

 o 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
 

 o 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
 

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o dump
 public static void dump(IOR ior)
Dumps all Profiles in the IOR.

 o 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
 o equals
 public static final boolean equals(byte d1[],
                                    byte d2[])
Compares two byte[] for equality

 o 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
 o 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.
 o 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.
 o 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.
 o 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.
 o 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).

 o 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.
 o 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.
 o get_ior
 public static String get_ior(String ref) throws IOException
retrieves an IOR from a String reference. A String reference can be:
  • an IOR (in which case the IOR is returned); or
  • a valid URL, in which case the IOR is retrieved using the java.net.URL class.
  • 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
     o 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.
     o 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.
     o 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:
  • IOR:data where data represents a stringified IOR
  • URL where URL is a valid URL, whose contents, when downloaded, contain a stringified IOR. (Note: ORBAsec provides an extension to URL syntax to allow local file references whose locations are relative, instead of absolute filenames. E.g., file:./server.ior is a valid URL IOR reference in ORBAsec).
  • class:classname where classname is the fully qualified Java classname (in the user's CLASSPATH) which implements the org.omg.CORBA.Object interface. A new instance of this class will be created, so it must have a public default (i.e., parameterless) constructor.
  • 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
     o 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
     o 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