Class TokenAwareServer
- java.lang.Object
-
- org.oa4mp.delegation.server.client.ASImpl
-
- org.oa4mp.delegation.server.client.TokenAwareServer
-
- All Implemented Interfaces:
AddressableServer
,DoubleDispatchServer
,Server
- Direct Known Subclasses:
ATServer2
,RFC7009Server2
,RFC7523Server
,RFC7662Server2
,RFC8623Server
,RTServer2
public abstract class TokenAwareServer extends ASImpl
Since the processing of claims is to be supported for refresh tokens as well, the machinery for it should be available generally to access and refresh token servers.Created by Jeff Gaynor
on 9/13/17 at 2:37 PM
-
-
Constructor Summary
Constructors Constructor Description TokenAwareServer(edu.uiuc.ncsa.security.servlet.ServiceClient serviceClient, URI issuer, String wellKnown, boolean serverOIDCEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IDTokenImpl
getAndCheckIDToken(net.sf.json.JSONObject jsonObject, BasicRequest atRequest)
Takes the response JSON object that contains the ID token and the request and checks that it is a valid ID Token for this client.protected net.sf.json.JSONObject
getAndCheckResponse(String response)
edu.uiuc.ncsa.security.util.jwk.JSONWebKeys
getJsonWebKeys()
edu.uiuc.ncsa.security.servlet.ServiceClient
getServiceClient()
URI
getTokenEndpoint()
void
setTokenEndpoint(URI tokenEndpoint)
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.oa2.client.ASImpl
getAddress, process
-
-
-
-
Method Detail
-
getServiceClient
public edu.uiuc.ncsa.security.servlet.ServiceClient getServiceClient()
-
getJsonWebKeys
public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getJsonWebKeys()
-
getAndCheckResponse
protected net.sf.json.JSONObject getAndCheckResponse(String response)
-
getAndCheckIDToken
protected IDTokenImpl getAndCheckIDToken(net.sf.json.JSONObject jsonObject, BasicRequest atRequest)
Takes the response JSON object that contains the ID token and the request and checks that it is a valid ID Token for this client. Result is the actual ID token (also a JSON Object).- Parameters:
jsonObject
-atRequest
-- Returns:
-
getTokenEndpoint
public URI getTokenEndpoint()
-
setTokenEndpoint
public void setTokenEndpoint(URI tokenEndpoint)
-
-