Class DefaultClientRedirectService
- java.lang.Object
-
- com.broadleafcommerce.auth.server.service.DefaultClientRedirectService
-
- All Implemented Interfaces:
ClientRedirectService
public class DefaultClientRedirectService extends Object implements ClientRedirectService
-
-
Constructor Summary
Constructors Constructor Description DefaultClientRedirectService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRedirectToUrl(String redirectUrl, String clientId)Checks if the user is able to be redirected to the given redirect URLprotected AuthorizedClientService<AuthorizedClient>getClientService()StringgetDefaultRedirectUrlForClientId(String clientId)Used for returning the default redirect URL for the provided clientprotected AuthorizationServerService<AuthorizationServer>getServerService()
-
-
-
Constructor Detail
-
DefaultClientRedirectService
public DefaultClientRedirectService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
-
-
Method Detail
-
getDefaultRedirectUrlForClientId
public String getDefaultRedirectUrlForClientId(String clientId)
Description copied from interface:ClientRedirectServiceUsed for returning the default redirect URL for the provided client- Specified by:
getDefaultRedirectUrlForClientIdin interfaceClientRedirectService- Parameters:
clientId- The String id of the client to resolve the redirect URL for- Returns:
- The default redirect URL for the given client, if exists, or null
-
canRedirectToUrl
public boolean canRedirectToUrl(String redirectUrl, String clientId)
Description copied from interface:ClientRedirectServiceChecks if the user is able to be redirected to the given redirect URL- Specified by:
canRedirectToUrlin interfaceClientRedirectService- Parameters:
redirectUrl- The URL to check againstclientId- The id of theAuthorizedClientto use for validating the URL- Returns:
- True if the user can be redirected to redirectUrl, else false
-
getClientService
protected AuthorizedClientService<AuthorizedClient> getClientService()
-
getServerService
protected AuthorizationServerService<AuthorizationServer> getServerService()
-
-