Class AbstractGrant
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.grants.AbstractGrant
-
- All Implemented Interfaces:
Serializable,AccessTokenGrant
- Direct Known Subclasses:
ClientCredentialsGrant,ResourceOwnerGrant
public abstract class AbstractGrant extends Object implements AccessTokenGrant
Abstract access token grant- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractGrant(String grantType)protectedAbstractGrant(String grantType, String scope)protectedAbstractGrant(String grantType, String scope, String audience)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()Returns the token grant type, example, "authorization_code"voidsetAudience(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.
-
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:AccessTokenGrantReturns the token grant type, example, "authorization_code"- Specified by:
getTypein interfaceAccessTokenGrant- Returns:
- the grant type
-
setAudience
public void setAudience(String audience)
-
toMap
public javax.ws.rs.core.MultivaluedMap<String,String> toMap()
Description copied from interface:AccessTokenGrantReturns the map containing public grant parameters; can be used by clients requesting the access tokens.- Specified by:
toMapin interfaceAccessTokenGrant- Returns:
- the grant parameters
-
-