public class SecurityServiceOAuth2RequestFactory extends Object implements org.springframework.security.oauth2.provider.OAuth2RequestFactory
SecurityService
to check that the
requested scopes are valid for the request and current user.Constructor and Description |
---|
SecurityServiceOAuth2RequestFactory(SecurityService securityService,
org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.provider.AuthorizationRequest |
createAuthorizationRequest(Map<String,String> authorizationParameters) |
org.springframework.security.oauth2.provider.OAuth2Request |
createOAuth2Request(org.springframework.security.oauth2.provider.AuthorizationRequest request) |
org.springframework.security.oauth2.provider.OAuth2Request |
createOAuth2Request(org.springframework.security.oauth2.provider.ClientDetails client,
org.springframework.security.oauth2.provider.TokenRequest tokenRequest) |
org.springframework.security.oauth2.provider.TokenRequest |
createTokenRequest(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest,
String grantType) |
org.springframework.security.oauth2.provider.TokenRequest |
createTokenRequest(Map<String,String> tokenParameters,
org.springframework.security.oauth2.provider.ClientDetails authenticatedClient) |
protected Set<String> |
getRequestedScopes(Map<String,String> authorizationParameters,
org.springframework.security.oauth2.provider.ClientDetails clientDetails) |
public SecurityServiceOAuth2RequestFactory(SecurityService securityService, org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService)
public org.springframework.security.oauth2.provider.AuthorizationRequest createAuthorizationRequest(Map<String,String> authorizationParameters)
createAuthorizationRequest
in interface org.springframework.security.oauth2.provider.OAuth2RequestFactory
public org.springframework.security.oauth2.provider.OAuth2Request createOAuth2Request(org.springframework.security.oauth2.provider.AuthorizationRequest request)
createOAuth2Request
in interface org.springframework.security.oauth2.provider.OAuth2RequestFactory
public org.springframework.security.oauth2.provider.TokenRequest createTokenRequest(Map<String,String> tokenParameters, org.springframework.security.oauth2.provider.ClientDetails authenticatedClient)
createTokenRequest
in interface org.springframework.security.oauth2.provider.OAuth2RequestFactory
public org.springframework.security.oauth2.provider.TokenRequest createTokenRequest(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest, String grantType)
createTokenRequest
in interface org.springframework.security.oauth2.provider.OAuth2RequestFactory
public org.springframework.security.oauth2.provider.OAuth2Request createOAuth2Request(org.springframework.security.oauth2.provider.ClientDetails client, org.springframework.security.oauth2.provider.TokenRequest tokenRequest)
createOAuth2Request
in interface org.springframework.security.oauth2.provider.OAuth2RequestFactory
Copyright © 2021. All rights reserved.