Package org.omg.GSSUP

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


                        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

                    if (message.client_authentication_token != null && message.client_authentication_token.length > 0) {
                        if (traceEnabled) {
                            log.trace("received client authentication token");
                        }
                        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 new NO_PERMISSION("Could not decode initial context token.");
                        }
View Full Code Here

TOP

Related Classes of org.omg.GSSUP.InitialContextToken

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.