|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.AbstractRequest
com.nimbusds.oauth2.sdk.ProtectedResourceRequest
com.nimbusds.oauth2.sdk.client.ClientReadRequest
@Immutable public class ClientReadRequest
Client read request. This class is immutable.
Example HTTP request:
GET /register/s6BhdRkqt3 HTTP/1.1 Accept: application/json Host: server.example.com Authorization: Bearer reg-23410913-abewfq.123483
Related specifications:
Constructor Summary | |
---|---|
ClientReadRequest(URL uri,
BearerAccessToken accessToken)
Creates a new client read request. |
Method Summary | |
---|---|
static ClientReadRequest |
parse(HTTPRequest httpRequest)
Parses a client read request from the specified HTTP GET request. |
HTTPRequest |
toHTTPRequest()
Returns the matching HTTP request. |
Methods inherited from class com.nimbusds.oauth2.sdk.ProtectedResourceRequest |
---|
getAccessToken |
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest |
---|
getURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientReadRequest(URL uri, BearerAccessToken accessToken)
uri
- The URI of the client configuration endpoint. May
be null
if the toHTTPRequest()
method will not be used.accessToken
- An OAuth 2.0 Bearer access token for the request.
Must not be null
.Method Detail |
---|
public HTTPRequest toHTTPRequest() throws SerializeException
Request
SerializeException
- If the request message couldn't be
serialised to an HTTP request.public static ClientReadRequest parse(HTTPRequest httpRequest) throws ParseException
httpRequest
- The HTTP request. Must not be null
.
ParseException
- If the HTTP request couldn't be parsed to a
client read request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |