Package org.jacorb.orb

Examples of org.jacorb.orb.CDRInputStream


        // see if target requires protected requests by looking into the IOR
        CompoundSecMechList csmList = null;
        try
        {
            TaggedComponent tc = ri.get_effective_component(TAG_CSI_SEC_MECH_LIST.value);
            CDRInputStream is = new CDRInputStream( (org.omg.CORBA.ORB)null, tc.component_data);
            is.openEncapsulatedArray();
            csmList = CompoundSecMechListHelper.read( is );
        }
        catch (BAD_PARAM e)
        {
            if (logger.isDebugEnabled())
View Full Code Here


        TLS_SEC_TRANS tls = null;
        if (sas != null && sas.mechanism_list[0].transport_mech.tag == TAG_TLS_SEC_TRANS.value) {
            try
            {
                byte[] tagData = sas.mechanism_list[0].transport_mech.component_data;
                CDRInputStream in = new CDRInputStream( (org.omg.CORBA.ORB)null, tagData );
                in.openEncapsulatedArray();
                tls = TLS_SEC_TRANSHelper.read( in );
            }
            catch ( Exception ex )
            {
                logger.warn("Error parsing TLS_SEC_TRANS: "+ex);
View Full Code Here

                                            CompoundSecMechListHelper.class);
        if (csmList != null && csmList.mechanism_list.length > 0)
        {
            byte[] tlsSecTransData =
                csmList.mechanism_list[0].transport_mech.component_data;
            CDRInputStream in =
                new CDRInputStream((org.omg.CORBA.ORB)null, tlsSecTransData);
            try
            {
                in.openEncapsulatedArray();
                TLS_SEC_TRANS tls = TLS_SEC_TRANSHelper.read(in);
                if (tls.addresses.length > 0)
                {
                    int ssl_port = tls.addresses[0].port;
                    if (ssl_port != 0)
View Full Code Here

    * on subclasses having satisfactorily implemented the
    * {@link #readAddressProfile()} method.
    */
    protected void initFromProfileData(byte[] data)
    {
        CDRInputStream in = new CDRInputStream(null, data);
        in.openEncapsulatedArray();

        readAddressProfile(in);
       
        int length = in.read_ulong();
       
        objectKey = new byte[length];
        in.read_octet_array(objectKey, 0, length);
       
        components = (version != null && version.minor > 0) ? new TaggedComponentList(in)
                                                            : new TaggedComponentList();
    }
View Full Code Here

        }
    }

    private static void printCSIMechComponent( TaggedComponent taggedComponent )
    {
        CDRInputStream is =
        new CDRInputStream( (org.omg.CORBA.ORB)null,
                            taggedComponent.component_data);

        is.openEncapsulatedArray();
        CompoundSecMechList csmList = CompoundSecMechListHelper.read( is );

        if( csmList!= null )
        {
            System.out.println("\t\tis stateful: " + csmList.stateful );
View Full Code Here

        System.arraycopy(nameData, mechLen + 8, name, 0, nameLen);
        System.out.println(new String(name));
    }

    private static void printTlsSecTrans(byte[] tagData) {
        CDRInputStream in = new CDRInputStream( (org.omg.CORBA.ORB)null, tagData );
        try
        {
            in.openEncapsulatedArray();
            TLS_SEC_TRANS tls = TLS_SEC_TRANSHelper.read( in );
            System.out.println("\t\t\tTLS SEC TRANS target requires: " + tls.target_requires);
            System.out.println("\t\t\tTLS SEC TRANS target supports: " + tls.target_supports);
            for (int i = 0; i < tls.addresses.length; i++) {
                int ssl_port = tls.addresses[i].port;
View Full Code Here

        }
    }

    private static void printCodeSetComponent( TaggedComponent taggedComponent )
    {
        CDRInputStream is =
        new CDRInputStream( (org.omg.CORBA.ORB)null,
                            taggedComponent.component_data);

        is.openEncapsulatedArray();

        org.omg.CONV_FRAME.CodeSetComponentInfo codeSet =
        CodeSetComponentInfoHelper.read( is );

        if( codeSet != null )
View Full Code Here

    private static void printSSLTaggedComponent( TaggedComponent taggedComponent )
    {
        org.omg.SSLIOP.SSL  ssl = null;
        if( taggedComponent.tag == 20 )
        {
            CDRInputStream in =
            new CDRInputStream( (org.omg.CORBA.ORB)null,
                                taggedComponent.component_data );
            try
            {
                in.openEncapsulatedArray();
                ssl =  org.omg.SSLIOP.SSLHelper.read( in );
            }
            catch ( Exception ex )
            {
                return;
View Full Code Here

    }


    private static void printJavaCodebaseComponent( TaggedComponent taggedComponent )
    {
        CDRInputStream is =
        new CDRInputStream( (org.omg.CORBA.ORB)null,
                            taggedComponent.component_data );

        is.openEncapsulatedArray();
        String codebase = is.read_string();

        System.out.println( "\t\tCodebase: " + codebase );
    }
View Full Code Here

        System.out.println( "\t\tCodebase: " + codebase );
    }

    private static void printOrbTypeComponent (TaggedComponent tc)
    {
        CDRInputStream is =
        new CDRInputStream ((org.omg.CORBA.ORB)null, tc.component_data );
        is.openEncapsulatedArray ();
        int type = is.read_long ();

        System.out.print ( "\t\tType: " + type);
        if (type == ORBConstants.JACORB_ORB_ID)
        {
            System.out.println (" (JacORB)");
View Full Code Here

TOP

Related Classes of org.jacorb.orb.CDRInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.