public class AuthorizationCodeGrant extends Object implements AccessTokenGrant
Constructor and Description |
---|
AuthorizationCodeGrant() |
AuthorizationCodeGrant(String code) |
AuthorizationCodeGrant(String code,
URI uri) |
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Gets the authorization code
|
String |
getRedirectUri()
Gets the redirect URI
|
String |
getType()
Returns the token grant type, example, "authorization_code"
|
void |
setCode(String c) |
void |
setRedirectUri(String redirectUri)
Sets the redirect URI, if set then the client is expected to
include the same URI during the access token request
|
javax.ws.rs.core.MultivaluedMap<String,String> |
toMap()
Returns the map containing public grant parameters;
can be used by clients requesting the access tokens.
|
public AuthorizationCodeGrant()
public AuthorizationCodeGrant(String code)
public void setRedirectUri(String redirectUri)
redirectUri
- redirect URIpublic String getRedirectUri()
public String getCode()
public void setCode(String c)
public String getType()
getType
in interface AccessTokenGrant
public javax.ws.rs.core.MultivaluedMap<String,String> toMap()
toMap
in interface AccessTokenGrant
Apache CXF