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, Saml2BearerGrantHandler
public abstract class AbstractGrantHandler
- extends Object
- implements AccessTokenGrantHandler
Abstract access token grant handler
Method Summary |
protected void |
checkIfGrantSupported(Client client)
Deprecated. |
protected ServerAccessToken |
doCreateAccessToken(Client client,
UserSubject subject,
List<String> requestedScope)
|
protected ServerAccessToken |
doCreateAccessToken(Client client,
UserSubject subject,
List<String> requestedScope,
String audience)
|
protected ServerAccessToken |
doCreateAccessToken(Client client,
UserSubject subject,
javax.ws.rs.core.MultivaluedMap<String,String> params)
|
protected ServerAccessToken |
doCreateAccessToken(Client client,
UserSubject subject,
String requestedGrant,
List<String> requestedScope)
|
protected ServerAccessToken |
doCreateAccessToken(Client client,
UserSubject subject,
String requestedGrant,
List<String> requestedScope,
String audience)
|
OAuthDataProvider |
getDataProvider()
|
List<String> |
getSupportedGrantTypes()
|
boolean |
isCanSupportPublicClients()
|
void |
setCanSupportPublicClients(boolean support)
|
void |
setDataProvider(OAuthDataProvider dataProvider)
|
void |
setPartialMatchScopeValidation(boolean partialMatchScopeValidation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGrantHandler
protected AbstractGrantHandler(String grant)
AbstractGrantHandler
protected AbstractGrantHandler(List<String> grants)
setDataProvider
public void setDataProvider(OAuthDataProvider dataProvider)
getDataProvider
public OAuthDataProvider getDataProvider()
getSupportedGrantTypes
public List<String> getSupportedGrantTypes()
- Specified by:
getSupportedGrantTypes
in interface AccessTokenGrantHandler
checkIfGrantSupported
@Deprecated
protected void checkIfGrantSupported(Client client)
- Deprecated.
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client,
UserSubject subject,
javax.ws.rs.core.MultivaluedMap<String,String> params)
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client,
UserSubject subject,
List<String> requestedScope)
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client,
UserSubject subject,
List<String> requestedScope,
String audience)
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client,
UserSubject subject,
String requestedGrant,
List<String> requestedScope)
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client,
UserSubject subject,
String requestedGrant,
List<String> requestedScope,
String audience)
setPartialMatchScopeValidation
public void setPartialMatchScopeValidation(boolean partialMatchScopeValidation)
setCanSupportPublicClients
public void setCanSupportPublicClients(boolean support)
isCanSupportPublicClients
public boolean isCanSupportPublicClients()
Apache CXF