public class AccessTokenRequest extends Request
AccessToken
instance
via getAccessToken()
.
It's impossible to create instance of the class directly.
Request.Factory
CT_URLENCODED, PROPNM_ACCEPT, PROPNM_AUTHORIZATION, PROPNM_CONTENT_TYPE
Modifier and Type | Method and Description |
---|---|
void |
addParam(java.lang.String key,
java.lang.String value)
Adds a parameter to the AccessTokenRequest body
|
AccessToken |
getAccessToken()
Executes the Access Token Request, receives a response from the server,
parses it and returns the AccessToken object
|
addParameter, addParameter, addProperty, createHttpConnection, execute, getBody, getBodyOutputStream, getMethod, getProperty, getURI, setMethod, toString
public void addParam(java.lang.String key, java.lang.String value)
key
- parameter namevalue
- parameter valuepublic AccessToken getAccessToken() throws OAuth2Exception, java.io.IOException
OAuth2Exception
- in case if the
result code in the server response is not OK.java.io.IOException
- in case if HttpConnection failsCopyright © 2013, 2014, Oracle and/or its affiliates. All rights reserved.