Examples of InitialContextToken


Examples of com.sun.corba.ee.org.omg.GSSUP.InitialContextToken

            _logger.fine("Password (UTF8) " + "########");
            _logger.fine("Targetname      " + GSSUtils.dumpHex(target_name));
        }
        /* Create an InitialContextToken */
        InitialContextToken inctxToken = 
            new InitialContextToken(name_utf8, password_utf8, target_name);

        /* Generate a CDR encoding */
        Any a = orb.create_any();
        InitialContextTokenHelper.insert(a, inctxToken);

View Full Code Here

Examples of com.sun.corba.ee.org.omg.GSSUP.InitialContextToken

      a = codec.decode_value(encoded_token, InitialContextTokenHelper.type());
        } catch (Exception e) {
            _logger.log(Level.SEVERE,"iiop.decode_exception",e);
        }

        InitialContextToken inctxToken = InitialContextTokenHelper.extract(a);

        /* get UTF8 encodings from initial context token */
        password_utf8     = inctxToken.password;
        name_utf8         = inctxToken.username;
        target_name       = inctxToken.target_name;
View Full Code Here

Examples of com.sun.corba.ee.org.omg.GSSUP.InitialContextToken

            _logger.fine("Password (UTF8) " + "########");
            _logger.fine("Targetname      " + GSSUtils.dumpHex(target_name));
        }
        /* Create an InitialContextToken */
        InitialContextToken inctxToken = 
            new InitialContextToken(name_utf8, password_utf8, target_name);

        /* Generate a CDR encoding */
        Any a = orb.create_any();
        InitialContextTokenHelper.insert(a, inctxToken);

View Full Code Here

Examples of com.sun.corba.ee.org.omg.GSSUP.InitialContextToken

      a = codec.decode_value(encoded_token, InitialContextTokenHelper.type());
        } catch (Exception e) {
            _logger.log(Level.SEVERE,"iiop.decode_exception",e);
        }

        InitialContextToken inctxToken = InitialContextTokenHelper.extract(a);

        /* get UTF8 encodings from initial context token */
        password_utf8     = inctxToken.password;
        name_utf8         = inctxToken.username;
        target_name       = inctxToken.target_name;
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

                there = new GSSUPAnonUserName();
                protReady = true;
                return null;
            }

            InitialContextToken token = new InitialContextToken();
            byte[] buf = new byte[2048];
            inputStream.read(buf, 0, buf.length);

            Util.decodeGSSUPToken(Util.getCodec(), buf, token);
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

                    threadLocal.contextId = message.client_context_id;
                    threadLocal.sasContextReceived = true;

                    if (message.client_authentication_token != null && message.client_authentication_token.length > 0) {
                        JacORBLogger.ROOT_LOGGER.authTokenReceived();
                        InitialContextToken authToken = CSIv2Util.decodeInitialContextToken(
                                message.client_authentication_token, codec);
                        if (authToken == null) {
                            threadLocal.sasReply = createMsgCtxError(message.client_context_id, 2 /* major status: invalid mechanism */);
                            throw JacORBMessages.MESSAGES.errorDecodingInitContextToken();
                        }
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

                byte[] username = name.getBytes("UTF-8");
                // I don't know why there is not a better way to go from char[] -> byte[].
                byte[] password = serverPassword.getBytes("UTF-8");

                // create authentication token
                InitialContextToken authenticationToken = new InitialContextToken(username, password, encodedTargetName);
                // ASN.1-encode it, as defined in RFC 2743.
                encodedAuthenticationToken = CSIv2Util.encodeInitialContextToken(authenticationToken, codec);
            }

            if (identityToken != absentIdentityToken || encodedAuthenticationToken != noAuthenticationToken) {
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

                        String tmp = credential.toString();
                        password = tmp.getBytes("UTF-8");
                    }

                    // create authentication token.
                    InitialContextToken authenticationToken = new InitialContextToken(username, password,
                            encodedTargetName);
                    // ASN.1-encode it, as defined in RFC 2743.
                    byte[] encodedAuthenticationToken = CSIv2Util.encodeInitialContextToken(authenticationToken,
                            codec);
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

        // Extract client authentication token
        if (support_gssup_authorization
            && establishMsg.identity_token.discriminator() == ITTAbsent.value
            && establishMsg.client_authentication_token.length > 0)
        {
            InitialContextToken gssupToken = decodeGSSUPToken(establishMsg.client_authentication_token);

            String useratrealm = utf8decode(gssupToken.username);

            String name;
            String realm;
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

            log.fine("send_request, name: \"" + scopedUserName + "\"");
        } else {

            // Make GSSUP InitialContextToken
            InitialContextToken gssupToken = new InitialContextToken();
            gssupToken.username = utf8encode(scopedUserName);
            gssupToken.target_name = encodeGSSExportedName(realm);
            gssupToken.password = utf8encode(password);

            establishMsg.client_authentication_token = encodeGSSUPToken(gssupToken);
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.