public class DefaultClientRedirectService extends Object implements ClientRedirectService
| Constructor and Description |
|---|
DefaultClientRedirectService(AuthorizedClientService<AuthorizedClient> clientService,
AuthorizationServerService<AuthorizationServer> serverService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRedirectToUrl(String redirectUrl,
String clientId)
Checks if the user is able to be redirected to the given redirect URL
|
protected AuthorizedClientService<AuthorizedClient> |
getClientService() |
String |
getDefaultRedirectUrlForClientId(String clientId)
Used for returning the default redirect URL for the provided client
|
protected AuthorizationServerService<AuthorizationServer> |
getServerService() |
public DefaultClientRedirectService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
public String getDefaultRedirectUrlForClientId(String clientId)
ClientRedirectServicegetDefaultRedirectUrlForClientId in interface ClientRedirectServiceclientId - The String id of the client to resolve the redirect URL forpublic boolean canRedirectToUrl(String redirectUrl, String clientId)
ClientRedirectServicecanRedirectToUrl in interface ClientRedirectServiceredirectUrl - The URL to check againstclientId - The id of the AuthorizedClient to use for validating the URLprotected AuthorizedClientService<AuthorizedClient> getClientService()
protected AuthorizationServerService<AuthorizationServer> getServerService()
Copyright © 2021. All rights reserved.