Apache CXF API

org.apache.cxf.rs.security.oauth2.grants.clientcred
Class ClientCredentialsGrant

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.grants.clientcred.ClientCredentialsGrant
All Implemented Interfaces:
AccessTokenGrant

public class ClientCredentialsGrant
extends Object
implements AccessTokenGrant


Constructor Summary
ClientCredentialsGrant()
           
ClientCredentialsGrant(String scope)
           
 
Method Summary
 String getType()
          Returns the token grant type, example, "authorization_code"
 javax.ws.rs.core.MultivaluedMap<String,String> toMap()
          Returns the map containing public grant parameters; can be used by clients requesting the access tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCredentialsGrant

public ClientCredentialsGrant()

ClientCredentialsGrant

public ClientCredentialsGrant(String scope)
Method Detail

getType

public String getType()
Description copied from interface: AccessTokenGrant
Returns the token grant type, example, "authorization_code"

Specified by:
getType in interface AccessTokenGrant
Returns:
the grant type

toMap

public javax.ws.rs.core.MultivaluedMap<String,String> toMap()
Description copied from interface: AccessTokenGrant
Returns the map containing public grant parameters; can be used by clients requesting the access tokens.

Specified by:
toMap in interface AccessTokenGrant
Returns:
the grant parameters

Apache CXF API

Apache CXF