Class AbstractGrantHandler
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
-
- All Implemented Interfaces:
AccessTokenGrantHandler
- Direct Known Subclasses:
AbstractJwtHandler,AuthorizationCodeGrantHandler,ClientCredentialsGrantHandler,ResourceOwnerGrantHandler,Saml2BearerGrantHandler
public abstract class AbstractGrantHandler extends Object implements AccessTokenGrantHandler
Abstract access token grant handler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractGrantHandler(String grant)protectedAbstractGrantHandler(List<String> grants)
-
Method Summary
-
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
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Method Detail
-
setDataProvider
public void setDataProvider(OAuthDataProvider dataProvider)
-
getDataProvider
public OAuthDataProvider getDataProvider()
-
getSupportedGrantTypes
public List<String> getSupportedGrantTypes()
- Specified by:
getSupportedGrantTypesin interfaceAccessTokenGrantHandler
-
getSingleGrantType
protected String getSingleGrantType()
-
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> requestedScopes)
-
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, List<String> requestedScopes, List<String> audiences)
-
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes)
-
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes, List<String> audiences)
-
getApprovedScopes
protected List<String> getApprovedScopes(Client client, UserSubject subject, List<String> requestedScopes)
-
getPreAuthorizedToken
protected ServerAccessToken getPreAuthorizedToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes, List<String> audiences)
-
isPartialMatchScopeValidation
public boolean isPartialMatchScopeValidation()
-
setPartialMatchScopeValidation
public void setPartialMatchScopeValidation(boolean partialMatchScopeValidation)
-
setCanSupportPublicClients
public void setCanSupportPublicClients(boolean support)
-
isCanSupportPublicClients
public boolean isCanSupportPublicClients()
-
-