public abstract class AbstractGrant extends Object implements AccessTokenGrant
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGrant(String grantType) |
protected |
AbstractGrant(String grantType,
String scope) |
protected |
AbstractGrant(String grantType,
String scope,
String audience) |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Returns the token grant type, example, "authorization_code"
|
void |
setAudience(String audience) |
javax.ws.rs.core.MultivaluedMap<String,String> |
toMap()
Returns the map containing public grant parameters;
can be used by clients requesting the access tokens.
|
protected AbstractGrant(String grantType)
public String getType()
AccessTokenGrantgetType in interface AccessTokenGrantpublic void setAudience(String audience)
public javax.ws.rs.core.MultivaluedMap<String,String> toMap()
AccessTokenGranttoMap in interface AccessTokenGrantApache CXF