Package org.pac4j.core.http.callback
Interface CallbackUrlResolver
- All Known Implementing Classes:
NoParameterCallbackUrlResolver
,PathParameterCallbackUrlResolver
,QueryParameterCallbackUrlResolver
public interface CallbackUrlResolver
How to compute a callback URL and match a client.
- Since:
- 3.0.0
- Author:
- Jerome Leleu
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(UrlResolver urlResolver, String url, String clientName, WebContext context) Compute a callback URL from the provided URL resolver, URL, client name and web context.boolean
matches
(String clientName, WebContext context) Whether the current context matches the client name.
-
Method Details
-
compute
Compute a callback URL from the provided URL resolver, URL, client name and web context.- Parameters:
urlResolver
- the provided URL resolverurl
- the URLclientName
- the client namecontext
- the web context- Returns:
- the computed URL
-
matches
Whether the current context matches the client name.- Parameters:
clientName
- the client namecontext
- the web context- Returns:
- whether the current context matches the client name
-