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 ClientgetClient()The client that is making this request.StringgetKeyID()Map<String,Object>getParameters()Additional parameters that the request is to send along to the server.booleanhasKeyID()Responseprocess(Server server)voidsetClient(Client client)voidsetKeyID(String keyID)voidsetParameters(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()
-
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.
-
-