Examples of CompoundSecMechList


Examples of org.omg.CSIIOP.CompoundSecMechList

        //if (ri.operation().equals("_is_a")) return;
        //if (ri.operation().equals("_non_existent")) return;
        org.omg.CORBA.ORB orb = ((ClientRequestInfoImpl) ri).orb;

        // 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();
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

    public int size() {
        return mechs.size();
    }

    public TaggedComponent encodeIOR(ORB orb, Codec codec) throws Exception {
        CompoundSecMechList csml = new CompoundSecMechList();

        csml.stateful = stateful;
        csml.mechanism_list = new CompoundSecMech[mechs.size()];

        for (int i = 0; i < mechs.size(); i++) {
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

    public static TSSCompoundSecMechListConfig decodeIOR(Codec codec, TaggedComponent taggedComponent) throws Exception {
        TSSCompoundSecMechListConfig result = new TSSCompoundSecMechListConfig();

        Any any = codec.decode_value(taggedComponent.component_data, CompoundSecMechListHelper.type());
        CompoundSecMechList csml = CompoundSecMechListHelper.extract(any);

        result.setStateful(csml.stateful);

        for (int i = 0; i < csml.mechanism_list.length; i++) {
            result.add(TSSCompoundSecMechConfig.decodeIOR(codec, csml.mechanism_list[i]));
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

      // do nothing
   }

   CompoundSecMech getSecurityMech(ClientRequestInfo ri)
   {
      CompoundSecMechList csmList = null;
      CompoundSecMech securityMech = null;
      try
      {
          TaggedComponent tc = ri.get_effective_component(TAG_CSI_SEC_MECH_LIST.value);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

        
      // the above is wrapped into a CSIIOP.CompoundSecMechList
      // structure, which is NOT a CompoundSecMech[] !!!
      //
      //  We DONT support stateful/reusable security contexts (false)
      CompoundSecMechList csmList = new CompoundSecMechList(false,
         mechList);
      // finally, the CompoundSecMechList must be encoded as a TaggedComponent
      try
      {
         Any any = orb.create_any();
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

   public static CompoundSecMech getMatchingSecurityMech(ClientRequestInfo ri,
      Codec codec,
      short clientSupports,
      short clientRequires)
   {
      CompoundSecMechList csmList = null;
      try
      {
         TaggedComponent tc =
            ri.get_effective_component(TAG_CSI_SEC_MECH_LIST.value);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

        return mech_list.mechanism_list[j].transport_mech.tag;
    }

    public static Component read(AbstractORB orb, byte[] data) {
        EncapsulationInputStream ein = new EncapsulationInputStream(orb, data);
        CompoundSecMechList mech_list = CompoundSecMechListHelper.read(ein);
        return new SecurityMechanismListComponent(orb, mech_list);
    }
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

                    new CompoundSecMech(sasValues.targetRequires,
                                        transportMech,
                                        asContextSec,
                                        sasContextSec);

                CompoundSecMechList compoundSecMechList =
                    new CompoundSecMechList(useStateful, compoundSecMech);

                // export to tagged component
                final CDROutputStream sasDataStream = new CDROutputStream( orb );

                try
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

                    taggedComponent.component_data);

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

            if( csmList!= null )
            {
                out.println("\t\tis stateful: " + csmList.stateful );
                for( int i = 0; i < csmList.mechanism_list.length; i++ )
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

    }


    private TLS_SEC_TRANS getTlsSpecFromCSIComponent()
    {
        CompoundSecMechList sas = null;
        try
        {
            sas = (CompoundSecMechList) getComponent( TAG_CSI_SEC_MECH_LIST.value, CompoundSecMechListHelper.class );
        }
        catch (Exception ex)
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.