Class IDTokenResponse
- java.lang.Object
-
- org.oa4mp.delegation.server.server.IResponse2
-
- org.oa4mp.delegation.server.server.IDTokenResponse
-
- All Implemented Interfaces:
Response
,IssuerResponse
- Direct Known Subclasses:
ATIResponse2
,RTIResponse
public abstract class IDTokenResponse extends IResponse2
This is the superclass for responses that must include the ID token. Note that the ID token is in thegetUserMetadata()
.Created by Jeff Gaynor
on 8/17/17 at 1:03 PM
-
-
Constructor Summary
Constructors Constructor Description IDTokenResponse(AccessTokenImpl accessToken, RefreshTokenImpl refreshToken, boolean isOIDC)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessToken
getAccessToken()
IDTokenImpl
getIdToken()
edu.uiuc.ncsa.security.util.jwk.JSONWebKey
getJsonWebKey()
RefreshTokenImpl
getRefreshToken()
ServiceTransaction
getServiceTransaction()
Collection<String>
getSupportedScopes()
The server must decide which scopes to return if any.net.sf.json.JSONObject
getUserMetadata()
boolean
hasRefreshToken()
boolean
isSignToken()
void
setAccessToken(AccessToken accessToken)
void
setIdToken(IDTokenImpl idToken)
void
setJsonWebKey(edu.uiuc.ncsa.security.util.jwk.JSONWebKey jsonWebKey)
void
setRefreshToken(RefreshTokenImpl refreshToken)
void
setServiceTransaction(ServiceTransaction serviceTransaction)
void
setSignToken(boolean signToken)
void
setSupportedScopes(Collection<String> supportedScopes)
void
setUserMetadata(net.sf.json.JSONObject userMetadata)
String
toString()
void
write(javax.servlet.http.HttpServletResponse response)
Write JSON response to response's output stream-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.oa2.server.IResponse2
getParameters, isOIDC, setIsOIDC, setParameters
-
-
-
-
Constructor Detail
-
IDTokenResponse
public IDTokenResponse(AccessTokenImpl accessToken, RefreshTokenImpl refreshToken, boolean isOIDC)
-
-
Method Detail
-
getAccessToken
public AccessToken getAccessToken()
-
setAccessToken
public void setAccessToken(AccessToken accessToken)
-
getIdToken
public IDTokenImpl getIdToken()
-
setIdToken
public void setIdToken(IDTokenImpl idToken)
-
hasRefreshToken
public boolean hasRefreshToken()
-
getRefreshToken
public RefreshTokenImpl getRefreshToken()
-
setRefreshToken
public void setRefreshToken(RefreshTokenImpl refreshToken)
-
getServiceTransaction
public ServiceTransaction getServiceTransaction()
-
setServiceTransaction
public void setServiceTransaction(ServiceTransaction serviceTransaction)
-
getJsonWebKey
public edu.uiuc.ncsa.security.util.jwk.JSONWebKey getJsonWebKey()
-
setJsonWebKey
public void setJsonWebKey(edu.uiuc.ncsa.security.util.jwk.JSONWebKey jsonWebKey)
-
isSignToken
public boolean isSignToken()
-
setSignToken
public void setSignToken(boolean signToken)
-
getUserMetadata
public net.sf.json.JSONObject getUserMetadata()
-
setUserMetadata
public void setUserMetadata(net.sf.json.JSONObject userMetadata)
-
getSupportedScopes
public Collection<String> getSupportedScopes()
The server must decide which scopes to return if any.- Returns:
-
setSupportedScopes
public void setSupportedScopes(Collection<String> supportedScopes)
-
write
public void write(javax.servlet.http.HttpServletResponse response) throws IOException
Write JSON response to response's output stream- Parameters:
response
- Response to write to- Throws:
IOException
-
-