org.apache.cxf.rs.security.oauth2.grants
Class AbstractGrantHandler
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGrantHandler
protected AbstractGrantHandler(String grant,
boolean isClientConfidential)
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