Class UIIResponse2
- java.lang.Object
-
- org.oa4mp.delegation.server.server.UIIResponse2
-
- All Implemented Interfaces:
Response
,IssuerResponse
public class UIIResponse2 extends Object implements IssuerResponse
User info issuer responseCreated by Jeff Gaynor
on 10/7/13 at 2:38 PM
-
-
Constructor Summary
Constructors Constructor Description UIIResponse2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected net.sf.json.JSONObject
createJSON()
Override this if needed.AccessToken
getAccessToken()
Map<String,String>
getParameters()
There may be several ways that parameters come in for a request.UserInfo
getUserInfo()
Getter for UserInfovoid
setAccessToken(AccessToken accessToken)
void
setParameters(Map<String,String> parameters)
void
setUserInfo(UserInfo userInfo)
Setter for UserInfovoid
write(javax.servlet.http.HttpServletResponse response)
Write JSON User Info response to output stream
-
-
-
Method Detail
-
getAccessToken
public AccessToken getAccessToken()
-
setAccessToken
public void setAccessToken(AccessToken accessToken)
-
write
public void write(javax.servlet.http.HttpServletResponse response) throws IOException
Write JSON User Info response to output stream- Specified by:
write
in interfaceIssuerResponse
- Parameters:
response
-- Throws:
IOException
-
createJSON
protected net.sf.json.JSONObject createJSON()
Override this if needed. The default behavior is to serialize everything in theUserInfo
object.- Returns:
-
getParameters
public Map<String,String> getParameters()
Description copied from interface:IssuerResponse
There may be several ways that parameters come in for a request. It is up to the implementation to parse them into key/value pairs and pass them back. Generally this includes everything that the client got.- Specified by:
getParameters
in interfaceIssuerResponse
- Returns:
-
getUserInfo
public UserInfo getUserInfo()
Getter for UserInfo- Returns:
- UserInfo
-
setUserInfo
public void setUserInfo(UserInfo userInfo)
Setter for UserInfo- Parameters:
userInfo
-
-
-