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
Abstract access token grant handler
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGrantHandler(String grant) protectedAbstractGrantHandler(List<String> grants) -
Method Summary
Modifier and TypeMethodDescriptionprotected ServerAccessTokendoCreateAccessToken(Client client, UserSubject subject, jakarta.ws.rs.core.MultivaluedMap<String, String> params) protected ServerAccessTokendoCreateAccessToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes) protected ServerAccessTokendoCreateAccessToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes, List<String> audiences) protected ServerAccessTokendoCreateAccessToken(Client client, UserSubject subject, List<String> requestedScopes) protected ServerAccessTokendoCreateAccessToken(Client client, UserSubject subject, List<String> requestedScopes, List<String> audiences) getApprovedScopes(Client client, UserSubject subject, List<String> requestedScopes) getAudiences(Client client, String clientAudience) protected ServerAccessTokengetPreAuthorizedToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes, List<String> audiences) protected StringbooleanbooleanvoidsetCanSupportPublicClients(boolean support) voidsetDataProvider(OAuthDataProvider dataProvider) voidsetPartialMatchScopeValidation(boolean partialMatchScopeValidation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.rs.security.oauth2.provider.AccessTokenGrantHandler
createAccessToken
-
Field Details
-
LOG
-
-
Constructor Details
-
AbstractGrantHandler
-
AbstractGrantHandler
-
-
Method Details
-
setDataProvider
-
getDataProvider
-
getSupportedGrantTypes
- Specified by:
getSupportedGrantTypesin interfaceAccessTokenGrantHandler
-
getSingleGrantType
-
doCreateAccessToken
protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, jakarta.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
-
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() -
getAudiences
-