Examples of CompoundSecMechList


Examples of org.omg.CSIIOP.CompoundSecMechList

        // get the the supported security mechanisms.
        CompoundSecMech[] mechList = createCompoundSecMechanisms(metadata, codec, sslPort, orb);

        // the above is wrapped into a CSIIOP.CompoundSecMechList structure, which is NOT a CompoundSecMech[].
        // we don't 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();
            CompoundSecMechListHelper.insert(any, csmList);
            byte[] b = codec.encode_value(any);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

     * @return the {@code CompoundSecMech} instance that satisfies all client options, or {@code null} if no such object
     *         can be found.
     */
    public static CompoundSecMech getMatchingSecurityMech(ClientRequestInfo ri, Codec codec, short clientSupports,
                                                          short clientRequires) {
        CompoundSecMechList csmList;
        try {
            TaggedComponent tc = ri.get_effective_component(TAG_CSI_SEC_MECH_LIST.value);

            Any any = codec.decode_value(tc.component_data, CompoundSecMechListHelper.type());
            csmList = CompoundSecMechListHelper.extract(any);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

        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 );
            for( int i = 0; i < csmList.mechanism_list.length; i++ )
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

/*     */
/* 170 */     TaggedComponent tc = null;
/*     */
/* 173 */     CompoundSecMech[] mechList = createCompoundSecMechanisms(metadata, codec, sslPort, orb);
/*     */
/* 180 */     CompoundSecMechList csmList = new CompoundSecMechList(false, mechList);
/*     */     try
/*     */     {
/* 185 */       Any any = orb.create_any();
/*     */
/* 187 */       CompoundSecMechListHelper.insert(any, csmList);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

/* 802 */     return name;
/*     */   }
/*     */
/*     */   public static CompoundSecMech getMatchingSecurityMech(ClientRequestInfo ri, Codec codec, short clientSupports, short clientRequires)
/*     */   {
/* 830 */     CompoundSecMechList csmList = null;
/*     */     try
/*     */     {
/* 833 */       TaggedComponent tc = ri.get_effective_component(33);
/*     */
/* 836 */       Any any = codec.decode_value(tc.component_data, CompoundSecMechListHelper.type());
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

/*     */   {
/*     */   }
/*     */
/*     */   CompoundSecMech getSecurityMech(ClientRequestInfo ri)
/*     */   {
/* 374 */     CompoundSecMechList csmList = null;
/* 375 */     CompoundSecMech securityMech = null;
/*     */     try
/*     */     {
/* 378 */       TaggedComponent tc = ri.get_effective_component(33);
/*     */
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

        final CDRInputStream is = new CDRInputStream(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

                    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

        //if (ri.operation().equals("_is_a")) return;
        //if (ri.operation().equals("_non_existent")) return;
        org.omg.CORBA.ORB orb = 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(tc.component_data);
            is.openEncapsulatedArray();
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

        if(components == null)
        {
            return false;
        }

        CompoundSecMechList csmList =
            (CompoundSecMechList)components.getComponent(
                                            TAG_CSI_SEC_MECH_LIST.value,
                                            CompoundSecMechListHelper.class);

        if (csmList != null && csmList.mechanism_list.length > 0 &&
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.