Class BasicRequest
- java.lang.Object
-
- org.oa4mp.delegation.client.request.BasicRequest
-
- All Implemented Interfaces:
Request
- Direct Known Subclasses:
AGRequest
,ATRequest
,CallbackRequest
,DelegatedAssetRequest
,DelegationRequest
,PARequest
,RFC6749_4_4Request
,RFC7523Request
,RFC7662Request
,RTRequest
,UIRequest
public abstract class BasicRequest extends Object implements Request
Usage
Clients will need to send along parameters in their requests. This is done with a standardMap
. The Map will have every key value pair appended to the request. No formatting or other processing will be done to these so be sure to do this first. (2023-06-08) added support for RFC 7523 JWK authentication.
Created by Jeff Gaynor
on Apr 26, 2011 at 1:58:56 PM
-
-
Constructor Summary
Constructors Constructor Description BasicRequest()
BasicRequest(Client client, Map<String,String> parameters, String keyID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Client
getClient()
The client that is making this request.String
getKeyID()
Map<String,Object>
getParameters()
Additional parameters that the request is to send along to the server.boolean
hasKeyID()
Response
process(Server server)
Process the requestvoid
setClient(Client client)
void
setKeyID(String keyID)
void
setParameters(Map<String,Object> parameters)
-
-
-
Method Detail
-
getClient
public Client getClient()
The client that is making this request.- Returns:
-
setClient
public void setClient(Client client)
-
getKeyID
public String getKeyID()
-
setKeyID
public void setKeyID(String keyID)
-
hasKeyID
public boolean hasKeyID()
-
process
public Response process(Server server)
Description copied from interface:Request
Process the request
-
getParameters
public Map<String,Object> getParameters()
Additional parameters that the request is to send along to the server. These are key/value pairs and will be treated as strings.- Returns:
-
setParameters
public void setParameters(Map<String,Object> parameters)
- Parameters:
parameters
-- See Also:
for what this is and does.
-
-