Class AGIResponse2
- java.lang.Object
-
- org.oa4mp.delegation.server.server.IResponse2
-
- org.oa4mp.delegation.server.server.AGIResponse2
-
- All Implemented Interfaces:
Response
,AGResponse
,IssuerResponse
public class AGIResponse2 extends IResponse2 implements AGResponse
Authorization grant response from authorization endpoint on serverCreated by Jeff Gaynor
on 6/4/13 at 5:06 PM
-
-
Constructor Summary
Constructors Constructor Description AGIResponse2(boolean isOIDC)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Client
getClient()
AuthorizationGrant
getGrant()
Getter for grantServiceTransaction
getServiceTransaction()
boolean
isEncodeToken()
Set true only if you want the token encoded in the response.void
setEncodeToken(boolean encodeToken)
void
setGrant(AuthorizationGrant grant)
Setter for grantvoid
setParameters(Map<String,String> parameters)
Setter for grantvoid
setServiceTransaction(ServiceTransaction serviceTransaction)
void
write(javax.servlet.http.HttpServletResponse response)
Write the appropriate auth response-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.oa2.server.IResponse2
getParameters, isOIDC, setIsOIDC
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uiuc.ncsa.oa4mp.delegation.server.request.IssuerResponse
getParameters
-
-
-
-
Method Detail
-
isEncodeToken
public boolean isEncodeToken()
Set true only if you want the token encoded in the response. Note:- Normal functioning of the service does not need this, but certain extensions (such as CILogon) which take the response then do other operations before creating their own callback URI do need this encoded.
- This only applies to writing the response to the stream.
- Returns:
-
setEncodeToken
public void setEncodeToken(boolean encodeToken)
-
getClient
public Client getClient()
-
getServiceTransaction
public ServiceTransaction getServiceTransaction()
- Specified by:
getServiceTransaction
in interfaceAGResponse
-
setServiceTransaction
public void setServiceTransaction(ServiceTransaction serviceTransaction)
- Specified by:
setServiceTransaction
in interfaceAGResponse
-
getGrant
public AuthorizationGrant getGrant()
Getter for grant- Specified by:
getGrant
in interfaceAGResponse
- Returns:
- Authorization grant object
-
setGrant
public void setGrant(AuthorizationGrant grant)
Setter for grant- Parameters:
grant
- Authorization grant object
-
setParameters
public void setParameters(Map<String,String> parameters)
Setter for grant- Overrides:
setParameters
in classIResponse2
- Parameters:
parameters
- Map of parameters
-
write
public void write(javax.servlet.http.HttpServletResponse response) throws IOException
Write the appropriate auth response- Specified by:
write
in interfaceIssuerResponse
- Parameters:
response
- Response object to write (using OutputStream)- Throws:
IOException
-
-