Interface ClientRedirectService
- All Known Implementing Classes:
DefaultClientRedirectService
public interface ClientRedirectService
Service used for returning redirects for a client and/or server
- Author:
- Jay Aisenbrey (cja769)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRedirectToUrl
(String redirectUrl, String clientId) Checks if the user is able to be redirected to the given redirect URLgetDefaultRedirectUrlForClientId
(String clientId) Used for returning the default redirect URL for the provided client
-
Method Details
-
getDefaultRedirectUrlForClientId
Used for returning the default redirect URL for the provided client- 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
Checks if the user is able to be redirected to the given redirect URL- Parameters:
redirectUrl
- The URL to check againstclientId
- The id of theAuthorizedClient
to use for validating the URL- Returns:
- True if the user can be redirected to redirectUrl, else false
-