Examples of establish_msg()


Examples of org.omg.CSI.SASContextBody.establish_msg()

        msg.client_context_id = client_context_id;
        msg.client_authentication_token = client_authentication_token;
        msg.identity_token = identity_token;
        msg.authorization_token = authorization_token;
        SASContextBody contextBody = new SASContextBody();
        contextBody.establish_msg(msg);
        Any any = orb.create_any();
        SASContextBodyHelper.insert( any, contextBody );
        return any;
    }
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

        if (contextBody.discriminator() == MTEstablishContext.value)
        {
            EstablishContext msg = null;
            try
            {
                msg = contextBody.establish_msg();
                client_context_id = msg.client_context_id;
                contextToken = msg.client_authentication_token;

                if (!sasContext.validateContext(orb, codec, contextToken)) {
                    logger.info("Could not validate context EstablishContext " + ri.operation());
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

        {
            EstablishContext msg = null;
            String principalName = null;
            try
            {
                msg = contextBody.establish_msg();
                client_context_id = msg.client_context_id;
                contextToken = msg.client_authentication_token;

                principalName = sasContext.getValidatedPrincipal();
            }
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

                                    identityToken,
                                    encodedAuthenticationToken);
           
            // create SAS context with the EstablishContext message
            SASContextBody contextBody = new SASContextBody();
            contextBody.establish_msg(message);
           
            // stuff the SAS context into the outgoing request
            Any any = ORB.init().create_any();
            SASContextBodyHelper.insert(any, contextBody);
            ServiceContext sc =
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

                                       absentIdentityToken,
                                       encodedAuthenticationToken);

               // create SAS context with the EstablishContext message
               SASContextBody contextBody = new SASContextBody();
               contextBody.establish_msg(message);

               // stuff the SAS context into the outgoing request
               Any any = ORB.init().create_any();
               SASContextBodyHelper.insert(any, contextBody);
               ServiceContext sc =
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

                                 4 /* major status: no context */);
            throw new NO_PERMISSION("SAS context does not exist.");
         }
         else if (contextBody.discriminator() == MTEstablishContext.value)
         {
            EstablishContext message = contextBody.establish_msg();
            threadLocal.contextId = message.client_context_id;
            threadLocal.sasContextReceived = true;
           
            if (message.client_authentication_token != null
                && message.client_authentication_token.length > 0)
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

/* 176 */           byte[] encodedAuthenticationToken = CSIv2Util.encodeInitialContextToken(authenticationToken, this.codec);
/*     */
/* 181 */           EstablishContext message = new EstablishContext(0L, noAuthorizationToken, absentIdentityToken, encodedAuthenticationToken);
/*     */
/* 188 */           SASContextBody contextBody = new SASContextBody();
/* 189 */           contextBody.establish_msg(message);
/*     */
/* 192 */           Any any = ORB.init().create_any();
/* 193 */           SASContextBodyHelper.insert(any, contextBody);
/* 194 */           ServiceContext sc = new ServiceContext(15, this.codec.encode_value(any));
/*     */
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

/*     */
/* 380 */         throw new NO_PERMISSION("SAS context does not exist.");
/*     */       }
/* 382 */       if (contextBody.discriminator() == 0)
/*     */       {
/* 384 */         EstablishContext message = contextBody.establish_msg();
/* 385 */         threadLocal.contextId = message.client_context_id;
/* 386 */         threadLocal.sasContextReceived = true;
/*     */
/* 388 */         if ((message.client_authentication_token != null) && (message.client_authentication_token.length > 0))
/*     */         {
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

/* 247 */       if ((identityToken != absentIdentityToken) || (encodedAuthenticationToken != noAuthenticationToken))
/*     */       {
/* 252 */         EstablishContext message = new EstablishContext(0L, noAuthorizationToken, identityToken, encodedAuthenticationToken);
/*     */
/* 259 */         SASContextBody contextBody = new SASContextBody();
/* 260 */         contextBody.establish_msg(message);
/*     */
/* 263 */         Any any = ORB.init().create_any();
/* 264 */         SASContextBodyHelper.insert(any, contextBody);
/* 265 */         ServiceContext sc = new ServiceContext(15, this.codec.encode_value(any));
/*     */
View Full Code Here

Examples of org.omg.CSI.SASContextBody.establish_msg()

        msg.identity_token = sas_mech.encodeIdentityToken();

        ServiceContext context = new ServiceContext();

        SASContextBody sas = new SASContextBody();
        sas.establish_msg(msg);
        Any sas_any = Util.getORB().create_any();
        SASContextBodyHelper.insert(sas_any, sas);
        context.context_data = Util.getCodec().encode_value(sas_any);

        context.context_id = SecurityAttributeService.value;
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.