Package org.omg.CSIIOP

Examples of org.omg.CSIIOP.CompoundSecMech


         createTargetRequires(metadata.getTransportConfig()) |
         asContext.target_requires |
         sasContext.target_requires;

      // wrap it up
      CompoundSecMech csm = new CompoundSecMech((short) target_requires,
         transport_mech,
         asContext,
         sasContext);
      // store it in csmList as the only security mechanism
      csmList[0] = csm;
View Full Code Here


         csmList = CompoundSecMechListHelper.extract(any);
        
         // look for the first matching security mech
         for(int i = 0; i < csmList.mechanism_list.length; i++)
         {
            CompoundSecMech securityMech = csmList.mechanism_list[i];
            AS_ContextSec authConfig = securityMech.as_context_mech;

            if( (EstablishTrustInTarget.value
               & (clientRequires ^ authConfig.target_supports)
               & ~authConfig.target_supports) != 0 )
View Full Code Here

                    new AS_ContextSec(sasValues.targetSupports,
                                      sasValues.targetRequires,
                                      clientAuthenticationMech,
                                      targetName);
                compoundSecMech[0] =
                    new CompoundSecMech(sasValues.targetRequires,
                                        transportMech,
                                        asContextSec,
                                        sasContextSec);

                CompoundSecMechList compoundSecMechList =
View Full Code Here

        // create target_requires bit field (AssociationOption) can't read directly the transport_mech TaggedComponent.
        int target_requires = createTargetRequires(metadata.getTransportConfig()) | asContext.target_requires |
                sasContext.target_requires;

        CompoundSecMech csm = new CompoundSecMech((short) target_requires, transport_mech, asContext, sasContext);
        csmList[0] = csm;

        return csmList;
    }
View Full Code Here

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

            // look for the first matching security mech.
            for (int i = 0; i < csmList.mechanism_list.length; i++) {
                CompoundSecMech securityMech = csmList.mechanism_list[i];
                AS_ContextSec authConfig = securityMech.as_context_mech;

                if ((EstablishTrustInTarget.value & (clientRequires ^ authConfig.target_supports)
                        & ~authConfig.target_supports) != 0) {
                    // client requires EstablishTrustInTarget, but target does not support it: skip this securityMech.
View Full Code Here

/*     */
/*     */   public void send_request(ClientRequestInfo ri)
/*     */   {
/*     */     try
/*     */     {
/* 126 */       CompoundSecMech secMech = CSIv2Util.getMatchingSecurityMech(ri, this.codec, 64, 0);
/*     */
/* 132 */       if (secMech == null) {
/* 133 */         return;
/*     */       }
/* 135 */       if ((secMech.as_context_mech.target_supports & 0x40) != 0)
View Full Code Here

/*     */
/* 229 */     SAS_ContextSec sasContext = createSecureAttributeServiceContext(metadata);
/*     */
/* 233 */     int target_requires = createTargetRequires(metadata.getTransportConfig()) | asContext.target_requires | sasContext.target_requires;
/*     */
/* 239 */     CompoundSecMech csm = new CompoundSecMech((short)target_requires, transport_mech, asContext, sasContext);
/*     */
/* 244 */     csmList[0] = csm;
/*     */
/* 246 */     return csmList;
/*     */   }
View Full Code Here

/*     */
/* 839 */       csmList = CompoundSecMechListHelper.extract(any);
/*     */
/* 842 */       for (int i = 0; i < csmList.mechanism_list.length; i++)
/*     */       {
/* 844 */         CompoundSecMech securityMech = csmList.mechanism_list[i];
/* 845 */         AS_ContextSec authConfig = securityMech.as_context_mech;
/*     */
/* 847 */         if ((0x20 & (clientRequires ^ authConfig.target_supports) & (authConfig.target_supports ^ 0xFFFFFFFF)) != 0)
/*     */         {
/*     */           continue;
View Full Code Here

/*     */
/*     */   public void send_request(ClientRequestInfo ri)
/*     */   {
/*     */     try
/*     */     {
/* 142 */       CompoundSecMech secMech = CSIv2Util.getMatchingSecurityMech(ri, this.codec, 1088, 0);
/*     */
/* 149 */       if (secMech == null) {
/* 150 */         return;
/*     */       }
/* 152 */       if (traceEnabled)
View Full Code Here

/*     */   }
/*     */
/*     */   CompoundSecMech getSecurityMech(ClientRequestInfo ri)
/*     */   {
/* 374 */     CompoundSecMechList csmList = null;
/* 375 */     CompoundSecMech securityMech = null;
/*     */     try
/*     */     {
/* 378 */       TaggedComponent tc = ri.get_effective_component(33);
/*     */
/* 380 */       Any any = this.codec.decode_value(tc.component_data, CompoundSecMechListHelper.type());
View Full Code Here

TOP

Related Classes of org.omg.CSIIOP.CompoundSecMech

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.