Package com.dyuproject.oauth.sp

Examples of com.dyuproject.oauth.sp.ServiceToken


{
   
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    {
        ServiceToken accessToken = getServiceProvider().getAccessToken(request);
        if(accessToken==null)
        {           
            response.setStatus(401);
            return;
        }
       
        response.setContentType("text/xml");
        response.setCharacterEncoding("UTF-8");
        PrintWriter writer = response.getWriter();
        writer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
            .append("<user>")
            .append("<id>").append(accessToken.getId()).append("</id>")
            .append("<contacts>")
            .append("contacts goes here ...")
            .append("</contacts>")
            .append("</user>");
       
View Full Code Here

TOP

Related Classes of com.dyuproject.oauth.sp.ServiceToken

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.