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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canRedirectToUrl(String redirectUrl, String clientId)
Checks if the user is able to be redirected to the given redirect URLString
getDefaultRedirectUrlForClientId(String clientId)
Used for returning the default redirect URL for the provided client
-
-
-
Method Detail
-
getDefaultRedirectUrlForClientId
String getDefaultRedirectUrlForClientId(@Nullable String clientId)
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
boolean canRedirectToUrl(String redirectUrl, String clientId)
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
-
-