Examples of CompoundSecMech


Examples of org.omg.CSIIOP.CompoundSecMech

    }

    @Override
    public void send_request(ClientRequestInfo ri) {
        try {
            CompoundSecMech secMech = CSIv2Util.getMatchingSecurityMech(ri, codec,
                    EstablishTrustInClient.value,  /* client supports */
                    (short) 0                       /* client requires */);
            if (secMech == null) {
                return;
            }
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMech

        return result;
    }

    public CompoundSecMech encodeIOR(ORB orb, Codec codec) throws Exception {
        CompoundSecMech result = new CompoundSecMech();

        result.target_requires = 0;

        // transport mechanism
        result.transport_mech = transport_mech.encodeIOR(orb, codec);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMech

        // 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

Examples of org.omg.CSIIOP.CompoundSecMech

            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

Examples of org.omg.CSIIOP.CompoundSecMech

    }

    @Override
    public void send_request(ClientRequestInfo ri) {
        try {
            CompoundSecMech secMech = CSIv2Util.getMatchingSecurityMech(ri, codec,
                    (short) (EstablishTrustInClient.value
                            + IdentityAssertion.value),    /* client supports */
                    (short) 0                               /* client requires */);
            if (secMech == null) {
                return;
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMech

    }

    @Override
    public void send_request(ClientRequestInfo ri) {
        try {
            CompoundSecMech secMech = CSIv2Util.getMatchingSecurityMech(ri, codec,
                    EstablishTrustInClient.value,  /* client supports */
                    (short) 0                       /* client requires */);
            if (secMech == null) {
                return;
            }
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMech

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

                CompoundSecMechList compoundSecMechList =
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMech

   
   public void send_request(ClientRequestInfo ri)
   {
      try
      {
         CompoundSecMech secMech =
            CSIv2Util.getMatchingSecurityMech(
               ri,
               codec,
               (short)(EstablishTrustInClient.value
                       + IdentityAssertion.value),    /* client supports */
 
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMech

   }

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

          Any any = codec.decode_value(tc.component_data,
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMech

   
   public void send_request(ClientRequestInfo ri)
   {
      try
      {
         CompoundSecMech secMech =
            CSIv2Util.getMatchingSecurityMech(
               ri,
               codec,
               EstablishTrustInClient.value,  /* client supports */
               (short)0                       /* client requires */);
 
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.