Package java.util.logging

Examples of java.util.logging.Logger.info()


        String sessionId = String.valueOf(System.identityHashCode(discovered));
        session.put(sessionId, discovered);

        response.getCookieSettings().add(
                new CookieSetting(OpenIdConsumer.DESCRIPTOR_COOKIE, sessionId));
        l.info("Setting DESCRIPTOR COOKIE");

        // obtain a AuthRequest message to be sent to the OpenID provider
        AuthRequest authReq = manager.authenticate(discovered, redir); // TODO
                                                                       // maybe
                                                                       // add
View Full Code Here


        AuthRequest authReq = manager.authenticate(discovered, redir); // TODO
                                                                       // maybe
                                                                       // add
                                                                       // TIMESTAMP?;
        String ref = request.getResourceRef().getBaseRef().toString();
        l.info("OpenID - REALM = " + ref);
        authReq.setRealm(ref);

        // Attribute Exchange - getting optional and required
        FetchRequest fetch = null;
        // String[] optional = params.getValuesArray("ax_optional", true);
View Full Code Here

        if (fetch != null) {
            authReq.addExtension(fetch);
        }

        if (!discovered.isVersion2()) {
            l.info("OpenId - Http Redirect");
            response.redirectTemporary(authReq.getDestinationUrl(true));

        } else {
            l.info("OpenId - HTML Form Redirect");
            Form msg = new Form();
View Full Code Here

        if (!discovered.isVersion2()) {
            l.info("OpenId - Http Redirect");
            response.redirectTemporary(authReq.getDestinationUrl(true));

        } else {
            l.info("OpenId - HTML Form Redirect");
            Form msg = new Form();
            for (Object key : authReq.getParameterMap().keySet()) {
                msg.add(key.toString(),
                        authReq.getParameterValue(key.toString()));
                l.info("Adding to form - key " + key.toString() + " : value"
View Full Code Here

            l.info("OpenId - HTML Form Redirect");
            Form msg = new Form();
            for (Object key : authReq.getParameterMap().keySet()) {
                msg.add(key.toString(),
                        authReq.getParameterValue(key.toString()));
                l.info("Adding to form - key " + key.toString() + " : value"
                        + authReq.getParameterValue(key.toString()));
            }
            response.setEntity(generateForm(authReq));
            // response.redirectTemporary(authReq.getDestinationUrl(true));
        }
View Full Code Here

        Logger l = Context.getCurrentLogger();
        try {
            // extract the parameters from the authentication response
            // (which comes in as a HTTP request from the OpenID provider)
            ParameterList response = new ParameterList(params.getValuesMap());
            l.info("response = " + response);

            // retrieve the previously stored discovery information
            l.info("GET COOKIES");
            String openidDisc = request.getCookies().getFirstValue(
                    OpenIdConsumer.DESCRIPTOR_COOKIE);
View Full Code Here

            // (which comes in as a HTTP request from the OpenID provider)
            ParameterList response = new ParameterList(params.getValuesMap());
            l.info("response = " + response);

            // retrieve the previously stored discovery information
            l.info("GET COOKIES");
            String openidDisc = request.getCookies().getFirstValue(
                    OpenIdConsumer.DESCRIPTOR_COOKIE);
            // String openidDisc =
            // getCookieSettings().getFirstValue(DESCRIPTOR_COOKIE);
            l.info("openIdDiscServer - "
View Full Code Here

            l.info("GET COOKIES");
            String openidDisc = request.getCookies().getFirstValue(
                    OpenIdConsumer.DESCRIPTOR_COOKIE);
            // String openidDisc =
            // getCookieSettings().getFirstValue(DESCRIPTOR_COOKIE);
            l.info("openIdDiscServer - "
                    + resp.getCookieSettings().getFirstValue(
                            "DESCRIPTOR_COOKIE"));
            l.info("openIdDiscServerLength -" + resp.getCookieSettings().size());
            l.info("openIdDiscClient - " + openidDisc);
            l.info("openIdDiscClientLength -" + request.getCookies().size());
View Full Code Here

            // String openidDisc =
            // getCookieSettings().getFirstValue(DESCRIPTOR_COOKIE);
            l.info("openIdDiscServer - "
                    + resp.getCookieSettings().getFirstValue(
                            "DESCRIPTOR_COOKIE"));
            l.info("openIdDiscServerLength -" + resp.getCookieSettings().size());
            l.info("openIdDiscClient - " + openidDisc);
            l.info("openIdDiscClientLength -" + request.getCookies().size());

            if (resp.getCookieSettings().size() > 0) {
                for (CookieSetting setting : resp.getCookieSettings()) {
View Full Code Here

            // getCookieSettings().getFirstValue(DESCRIPTOR_COOKIE);
            l.info("openIdDiscServer - "
                    + resp.getCookieSettings().getFirstValue(
                            "DESCRIPTOR_COOKIE"));
            l.info("openIdDiscServerLength -" + resp.getCookieSettings().size());
            l.info("openIdDiscClient - " + openidDisc);
            l.info("openIdDiscClientLength -" + request.getCookies().size());

            if (resp.getCookieSettings().size() > 0) {
                for (CookieSetting setting : resp.getCookieSettings()) {
                    l.info("CookieSetting: " + setting.getName()
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.