Interface ClientRedirectService
-
- All Known Implementing Classes:
DefaultClientRedirectService
public interface ClientRedirectServiceService 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 booleancanRedirectToUrl(String redirectUrl, String clientId)Checks if the user is able to be redirected to the given redirect URLStringgetDefaultRedirectUrlForClientId(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 theAuthorizedClientto use for validating the URL- Returns:
- True if the user can be redirected to redirectUrl, else false
-
-