Package org.apache.geronimo.security.jaas

Examples of org.apache.geronimo.security.jaas.UsernamePasswordCallback


            inputStream.read(buf, 0, buf.length);

            Util.decodeGSSUPToken(Util.getCodec(), buf, token);

            LoginContext context = new LoginContext(Util.decodeGSSExportName(token.target_name),
                                                    new UsernamePasswordCallback(new String(token.username, "UTF-8"),
                                                                                 new String(token.password, "UTF-8").toCharArray()));
            context.login();

            there = new GSSUPUserName(token.username);
View Full Code Here


                if (!targetName.equals(tokenTargetName)) throw new SASException(2);
                String userName = Util.extractUserNameFromScopedName(token.username);

                LoginContext context = new LoginContext(tokenTargetName,
                        new UsernamePasswordCallback(userName,
                                new String(token.password, "UTF8").toCharArray()));
                context.login();
                result = ContextManager.getServerSideSubject(context.getSubject());
            }
        } catch (UnsupportedEncodingException e) {
View Full Code Here

                if (!targetName.equals(tokenTargetName)) throw new SASException(2);
                String userName = Util.extractUserNameFromScopedName(token.username);

                LoginContext context = ContextManager.login(tokenTargetName,
                        new UsernamePasswordCallback(userName,
                                new String(token.password, "UTF8").toCharArray()));
                result = context.getSubject();
            }
        } catch (UnsupportedEncodingException e) {
            throw new SASException(1, e);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.security.jaas.UsernamePasswordCallback

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.