Class AbstractGrant
java.lang.Object
org.apache.cxf.rs.security.oauth2.grants.AbstractGrant
- All Implemented Interfaces:
Serializable,AccessTokenGrant
- Direct Known Subclasses:
ClientCredentialsGrant,ResourceOwnerGrant
Abstract access token grant
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGrant(String grantType) protectedAbstractGrant(String grantType, String scope) protectedAbstractGrant(String grantType, String scope, String audience) -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the token grant type, example, "authorization_code"voidsetAudience(String audience) toMap()Returns the map containing public grant parameters; can be used by clients requesting the access tokens.
-
Constructor Details
-
AbstractGrant
-
AbstractGrant
-
AbstractGrant
-
-
Method Details
-
getType
Description copied from interface:AccessTokenGrantReturns the token grant type, example, "authorization_code"- Specified by:
getTypein interfaceAccessTokenGrant- Returns:
- the grant type
-
setAudience
-
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
-