Apache CXF API

org.apache.cxf.rs.security.oauth2.grants
Class AbstractGrantHandler

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
All Implemented Interfaces:
AccessTokenGrantHandler
Direct Known Subclasses:
AuthorizationCodeGrantHandler, ClientCredentialsGrantHandler, ResourceOwnerGrantHandler

public abstract class AbstractGrantHandler
extends Object
implements AccessTokenGrantHandler

Abstract access token grant handler


Constructor Summary
protected AbstractGrantHandler(String grant, boolean isClientConfidential)
           
 
Method Summary
protected  void checkIfGrantSupported(Client client)
           
protected  ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, List<String> requestedScope)
           
 OAuthDataProvider getDataProvider()
           
 List<String> getSupportedGrantTypes()
           
 void setDataProvider(OAuthDataProvider dataProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.rs.security.oauth2.provider.AccessTokenGrantHandler
createAccessToken
 

Constructor Detail

AbstractGrantHandler

protected AbstractGrantHandler(String grant,
                               boolean isClientConfidential)
Method Detail

setDataProvider

public void setDataProvider(OAuthDataProvider dataProvider)

getDataProvider

public OAuthDataProvider getDataProvider()

getSupportedGrantTypes

public List<String> getSupportedGrantTypes()
Specified by:
getSupportedGrantTypes in interface AccessTokenGrantHandler

checkIfGrantSupported

protected void checkIfGrantSupported(Client client)

doCreateAccessToken

protected ServerAccessToken doCreateAccessToken(Client client,
                                                UserSubject subject,
                                                List<String> requestedScope)

Apache CXF API

Apache CXF