Class AGIResponse2
- java.lang.Object
-
- org.oa4mp.delegation.server.server.IResponse2
-
- org.oa4mp.delegation.server.server.AGIResponse2
-
- All Implemented Interfaces:
org.oa4mp.delegation.common.services.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 org.oa4mp.delegation.common.storage.clients.ClientgetClient()org.oa4mp.delegation.common.token.AuthorizationGrantgetGrant()Getter for grantServiceTransactiongetServiceTransaction()booleanisEncodeToken()Set true only if you want the token encoded in the response.voidsetEncodeToken(boolean encodeToken)voidsetGrant(org.oa4mp.delegation.common.token.AuthorizationGrant grant)Setter for grantvoidsetParameters(Map<String,String> parameters)Setter for grantvoidsetServiceTransaction(ServiceTransaction serviceTransaction)voidwrite(javax.servlet.http.HttpServletResponse response)Write the appropriate auth response-
Methods inherited from class org.oa4mp.delegation.server.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 org.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 org.oa4mp.delegation.common.storage.clients.Client getClient()
-
getServiceTransaction
public ServiceTransaction getServiceTransaction()
- Specified by:
getServiceTransactionin interfaceAGResponse
-
setServiceTransaction
public void setServiceTransaction(ServiceTransaction serviceTransaction)
- Specified by:
setServiceTransactionin interfaceAGResponse
-
getGrant
public org.oa4mp.delegation.common.token.AuthorizationGrant getGrant()
Getter for grant- Specified by:
getGrantin interfaceAGResponse- Returns:
- Authorization grant object
-
setGrant
public void setGrant(org.oa4mp.delegation.common.token.AuthorizationGrant grant)
Setter for grant- Parameters:
grant- Authorization grant object
-
setParameters
public void setParameters(Map<String,String> parameters)
Setter for grant- Overrides:
setParametersin classIResponse2- Parameters:
parameters- Map of parameters
-
write
public void write(javax.servlet.http.HttpServletResponse response) throws IOExceptionWrite the appropriate auth response- Specified by:
writein interfaceIssuerResponse- Parameters:
response- Response object to write (using OutputStream)- Throws:
IOException
-
-