Package org.cognitor.server.openid.web

Examples of org.cognitor.server.openid.web.XrdsDocumentBuilder


        return ((UniqueKeyUserDetails) authentication.getPrincipal()).getUniqueKey();
    }

    private void sendDiscoveryXml(HttpServletRequest request, HttpServletResponse response)
        throws IOException {
        XrdsDocumentBuilder documentBuilder = new XrdsDocumentBuilder();

        if (request.getParameterMap().containsKey("id")) {
            documentBuilder.addSignOnSerice(request.getRequestURL().toString());
        } else {
            documentBuilder.addServerService(request.getRequestURL().toString());
        }
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Sending xrds document:\n" + documentBuilder.getDocumentAsString());
        }
        writeToResponse(response, documentBuilder.getDocumentAsString(), MIME_TYPE_XRDS_XML);
    }
View Full Code Here

TOP

Related Classes of org.cognitor.server.openid.web.XrdsDocumentBuilder

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.