Examples of EncapsInputStream


Examples of com.sun.corba.ee.impl.encoding.EncapsInputStream

      throw new RuntimeException(msg);
  }

  org.omg.IOP.TaggedComponent comp = tcomp.getIOPComponent(orb);
  byte[] b = comp.component_data;
  CDRInputStream in = (CDRInputStream) new EncapsInputStream(orb, b, b.length);
  in.consumeEndian();
  CompoundSecMechList l = CompoundSecMechListHelper.read(in);
  CompoundSecMech[] list = l.mechanism_list;

  return list;
View Full Code Here

Examples of com.sun.corba.ee.impl.encoding.EncapsInputStream

        // a TAG_NULL_TAG implies that SSL is not required
        if (comp.tag == TAG_NULL_TAG.value){
            ssl = null;
        } else {
            byte[] b = comp.component_data;
            CDRInputStream in = (CDRInputStreamnew EncapsInputStream(orb, b, b.length);
            in.consumeEndian();
            ssl = TLS_SEC_TRANSHelper.read(in);
        }

  return ssl;
View Full Code Here

Examples of com.sun.corba.ee.impl.encoding.EncapsInputStream

      throw new RuntimeException(msg);
  }

  org.omg.IOP.TaggedComponent comp = tcomp.getIOPComponent(orb);
  byte[] b = comp.component_data;
  CDRInputObject in = (CDRInputObject) new EncapsInputStream(orb, b, b.length);
  in.consumeEndian();
  CompoundSecMechList l = CompoundSecMechListHelper.read(in);
  CompoundSecMech[] list = l.mechanism_list;

  return list;
View Full Code Here

Examples of com.sun.corba.ee.impl.encoding.EncapsInputStream

        // a TAG_NULL_TAG implies that SSL is not required
        if (comp.tag == TAG_NULL_TAG.value){
            ssl = null;
        } else {
            byte[] b = comp.component_data;
            CDRInputObject in = (CDRInputObjectnew EncapsInputStream(orb, b, b.length);
            in.consumeEndian();
            ssl = TLS_SEC_TRANSHelper.read(in);
        }

  return ssl;
View Full Code Here

Examples of com.sun.corba.ee.impl.encoding.EncapsInputStream

      throw new RuntimeException(msg);
  }

  org.omg.IOP.TaggedComponent comp = tcomp.getIOPComponent(orb);
  byte[] b = comp.component_data;
  CDRInputObject in = (CDRInputObject) new EncapsInputStream(orb, b, b.length);
  in.consumeEndian();
  CompoundSecMechList l = CompoundSecMechListHelper.read(in);
  CompoundSecMech[] list = l.mechanism_list;

  return list;
View Full Code Here

Examples of com.sun.corba.ee.impl.encoding.EncapsInputStream

        // a TAG_NULL_TAG implies that SSL is not required
        if (comp.tag == TAG_NULL_TAG.value){
            ssl = null;
        } else {
            byte[] b = comp.component_data;
            CDRInputObject in = (CDRInputObjectnew EncapsInputStream(orb, b, b.length);
            in.consumeEndian();
            ssl = TLS_SEC_TRANSHelper.read(in);
        }

  return ssl;
View Full Code Here

Examples of com.sun.corba.se.impl.encoding.EncapsInputStream

            // can't send a service context of a later GIOP
            // version than its stream version.
            //
            // Note:  As of Jan 2001, no standard OMG or Sun service contexts
            // ship wchar data or are defined as using anything but GIOP 1.0 CDR.
            EncapsInputStream eis
                = EncapsInputStreamFactory.newEncapsInputStream(orb,
                                    data,
                                    data.length,
                                    giopVersion,
                                    codeBase);
            eis.consumeEndian();

            // Now the input stream passed to a ServiceContext
            // constructor is already the encapsulation input
            // stream with the endianness read off, so the
            // service context should just unmarshal its own
View Full Code Here

Examples of com.sun.corba.se.impl.encoding.EncapsInputStream

        // a FormatMismatch and a TypeMismatch because we cannot get this
        // information from the CDRInputStream.  If a RuntimeException occurs,
        // it is turned into a FormatMismatch exception.

        try {
            EncapsInputStream cdrIn = EncapsInputStreamFactory.newEncapsInputStream( orb, data,
                    data.length, giopVersion );


            cdrIn.consumeEndian();

            // If type code not specified, read it from octet stream:
            if( tc == null ) {
                tc = cdrIn.read_TypeCode();
            }

            // Create a new Any object:
            any = new AnyImpl( (com.sun.corba.se.spi.orb.ORB)orb );
            any.read_value( cdrIn, tc );
View Full Code Here

Examples of com.sun.corba.se.impl.encoding.EncapsInputStream

        if (profile == null || profile.tag != TAG_INTERNET_IOP.value ||
            profile.profile_data == null) {
            throw wrapper.invalidTaggedProfile() ;
        }

        EncapsInputStream istr = EncapsInputStreamFactory.newEncapsInputStream((ORB)orb, profile.profile_data,
                profile.profile_data.length);
        istr.consumeEndian();
        init( istr ) ;
    }
View Full Code Here

Examples of com.sun.corba.se.impl.encoding.EncapsInputStream

    }

    public ObjectKey create( byte[] key )
    {
        OctetSeqHolder osh = new OctetSeqHolder() ;
        EncapsInputStream is = EncapsInputStreamFactory.newEncapsInputStream( orb, key, key.length );

        ObjectKeyTemplate oktemp = create( is, fullKey, osh ) ;
        if (oktemp == null)
            oktemp = new WireObjectKeyTemplate( is, osh ) ;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.